% if (count > 1 || mustBeVisible) {%> <%= i18n._('service')%> title="<%= Object.keys(groups).length === 0 ? i18n._('aucun_service') : i18n._('tous_les_services') %>" multiple id="formSearchService<%- search.id %>" class="selectpicker form-control"<% if (count <= 1) {%> disabled="disabled"<% } else {%> name="service_ids"<% }%>><% var multiGroup = _.size(groups)>1; _.each(groups, function (services, groupName) { if (multiGroup) {%> label="<%- serviceHelper.getTypeLabel(groupName) %>"><% } _.each(services, function (service) {%> <%- search.inputStates !== undefined && !search.inputStates['service'].editable ? 'disabled' : '' %>> <%- service.name %> <% }); if (multiGroup) { %> <% } }); %> <% if (count<=1) {%> <% } } else { %> <% } %>