<form data-id="form-category"
      class="needs-validation"
      novalidate>
    <div class="form-group">
        <label for="select-category-users">
            <%=raw _lc( 'ADD_USERS_TO_CATEGORY', [ cg.name ] ) %>
        </label>
        <select class="form-control"
                name="category-users"
                multiple
                size="<%= ~~Math.min( 10, members.length ) %>"
                data-id="select-category-users"
                id="select-category-users">

            <% for ( var mi = 0; mi < members.length; mi++ ) {  %>

                <option value="<%= members[ mi ].getId() %>"
                        <%= -1 < members[ mi ].getGroupCourseCategoryIds().indexOf( cg.id ) ? 'selected="selected"' : '' %>
                >
                    <%= members[ mi ].getName( g.getId() ) %>
                </option>

            <% }    %>

            </select>
    </div>
</form>