<% var buttonsHtml = { 'back': '' + ' ' + '' + translate.get("goback") + '' + '', 'apply': '' + ' ' + '' + translate.get("txtapplyforjob") + '' + '', 'print': '' + ' '+ '' + translate.get("printAJob") + '' + '', 'send2friend': '' + ' '+ '' + translate.get("sendToAFriend") + '' + '', 'viewCareerSite': '' + ' ' + translate.get("txtViewCareerSite") + '' }; %> <% if (isAdvertPreviewActive) { %>
<%- translate.get('txtJobPostingPreviewNotification') %>
<% }%>
<% if (structuredData) { %> <% } %> <% if (imageSrcOnLogo) { %>
<% } %> <% if (imageSrcOnHeader1) { %>
<% } %> <% if (imageSrcOnHeader2) { %>
<% } %>
class="job-title"><%= data.jobFields.jobTitle %> <% if(showApplyButton) { %> <%= buttonsHtml["apply"] %> <% } %> >
<% if (data.jobFields.strapLine) { %>
<%- utilities.formatValue(data.jobFields.strapLine, data.globals.typeDescriptor.strapLine, configuration) %>
<% } %> <% if (imageSrcOnTopOfJobDescription) { %>
<% } %>
<% _.each(jobInfo, function(info, i) { if (info.toUpperCase() == 'DPOSTINGEND' || info.toUpperCase() == 'EXPIRATION' || info.toUpperCase() == "DPOSTINGSTART") { %> <% formattedValue = utilities.formatPostingDate(data.jobFields[info], data.jobFields['POSTINGTIMEZONE'], configuration) %> <% } else if (info.toUpperCase() == 'FFIELD001_002' && data.jobFields['FFIELD001_002'] !== undefined) { let formatSalary = function (val) { val = parseFloat(val.replace(/£|,/g, "")); return Number(val).toLocaleString("en-US",{style: 'currency', currency: "GBP", currencyDisplay: "symbol", minimumFractionDigits: 0,maximumFractionDigits: 0,}); }; formattedValue = formatSalary(utilities.formatValue((data.jobFields['FFIELD001_002'] || ' '), data.globals.typeDescriptor['FFIELD001_002'], configuration)) formattedValue += " - " formattedValue += formatSalary(utilities.formatValue((data.jobFields['FFIELD001_003'] || ' '), data.globals.typeDescriptor['FFIELD001_003'], configuration)) } else { formattedValue = utilities.formatValue((data.jobFields[info] || ' '), data.globals.typeDescriptor[info], configuration) } %> <% if (!formattedValue.match(/31-(.)*-2099/) && info.toUpperCase() != 'FFIELD001_003') { %>
<%- translate.get(info, translate.get('JD_Param'+(i+1))) %>

<%= formattedValue %>

<% } %> <% }); %>
<% if (data.topImage) { %> <%- data.topImage.alt %> <% } %> <% _.each(data.customFields, function(field, i) { %>

<%- field.title %>

<%= field.content %>

<% }); %> <% if (data.bottomImage) { %> <%- data.bottomImage.alt %> <% } %> <% if (data.attachments.length > 0) { %>

<%- translate.get('avaliableDocuments') %>

<% } %>
<% if (imageSrcOnBottom) { %>
<% } %>
<% if(externalCareerSiteUrl !== '') { %> <%= buttonsHtml["viewCareerSite"] %> <% } %> <%= buttonsHtml["back"] %> <% if(!send2friendDisabled) { %> <%= buttonsHtml["send2friend"] %> <% } %> <%= buttonsHtml["print"] %> <% if(showApplyButton) { %> <%= buttonsHtml["apply"] %> <% } %>