<% var templateData = { settings: settings, data: data, criteria: criteria, translate: translate }; var isRadioOrCheckbox; %> legacy
<%- translate.get('searchCriteriaForm') %> <% _.each(criteria, function(criterium, i) { %> <% criterium.bindWithHtml = ''; if (!criterium.type) { if (criterium.id === 'JobAdlg' || criterium.id === 'pDateL') { criterium.type = "DROP_DOWN_LIST"; } } isRadioOrCheckbox = _.contains(['CHECK_BOX', 'CHECK_BOX_BLOCK', 'RADIO_BUTTON', 'RADIO_BUTTON_BLOCK'],criterium.type); var item = data.fields[criterium.id]; if (item && item.bindWith) { criterium.bindWithHtml = ' data-lumesse-sc-bind-with="'+item.bindWith+'"'; } %> <% if (isRadioOrCheckbox) { %>
<%- translate.get(criterium.label) %>
<% } %>
<% if (!isRadioOrCheckbox) { %> <% } %>
<% if (criterium.type == 'DROP_DOWN_LIST') { %> <% } else if (criterium.type == 'SCROLLING_WINDOW') { %> <% } else if (isRadioOrCheckbox) { %> <% } else if (criterium.items) { %> <% } else { %> > <% } %>
<% if (isRadioOrCheckbox) { %>
<% } %> <% }); %>