% if ( content == 'widget' ) { %>
<% if ( settings.displayCriteria ) { %>
<%- translate.get('searchCriteriaSelected') %>
<% } %>
<% } else if ( content == 'list' ) { %>
<% if(!data.jobs) { %>
<%- translate.get('LstA_NoJob') %> |
<% } %>
<% _.each(data.jobs, function(job, i) { %>
<% _.each(headers, function(header, j) { %>
<% if (j == 0) { %>
<% } else { %>
|
<% } %>
<% if (header.id === settings.jobLinkColumn) { %>
<%= utilities.formatValue(job.jobFields[header.id], data.globals.typeDescriptor[header.id], configuration) %>
<% } else { %>
<%= utilities.formatValue(job.jobFields[header.id], data.globals.typeDescriptor[header.id], configuration) %>
<% } %>
<% if ((header.id == 'jobTitle' || header.id == 'SJOBTITLE') && job.jobFields.strapLine) { %>
<%- utilities.formatValue(job.jobFields.strapLine, data.globals.typeDescriptor.strapLine, configuration) %>
<% } %>
<% if (j == 0) { %>
<% } else { %>
|
<% } %>
<% }); %>
<% }); %>
<% } else if ( content == 'criteria' ) { %>
<% _.each(criteria, function(criterium, i){ %>
- <%- translate.get(criterium.label) %>
- <%- _.map(criterium.values, function(val) { return translate.get(val, val) }).join(', ') %>
<% }) %>
<% if ( settings.displaySearchAgentLink ) { %>
<% var searchAgentUrl = settings.searchAgentUrl + ((typeof searchCriteriaUri === 'undefined' || searchCriteriaUri=="") ? "#" : "?" + searchCriteriaUri) %>
<% } %>
<% } // end if (content == 'widget') %>