<% if(!options.showCertificates){ %> <% }%> <% if(!options.showCertificates){ %> <% }%> <% var self=this; var cnt = 0; _.each(licenses.models, function(license) { var checkboxname = "checkbox_" + cnt; cnt++; if(license.attributes._oTLicenseType == "Certificate" && !options.showCertificates || license.attributes._oTLicenseType != "Certificate" && options.showCertificates) { return; } var selected= (license.attributes.id === options.currentSelection); %> class="selected"<% } %> data-id="<%=license.attributes.id%>"> <% var checked = license.checked; var usageUnit = ""; if (otdsCommon.getAttribute (license, 'oTLicenseType') != 'UNLICENSED') { usageUnit += otdsCommon.getAttribute (license, 'oTLicenseUnitsCurrent') + " / " + otdsCommon.getAttribute (license, 'oTLicenseUnitsTotal'); usageUnit += " (" + otdsCommon.getAttribute (license, 'oTLicenseUnitMeasurement') + ")"; } var licenseType = otdsCommon.getAttribute (license, 'oTLicenseType'), stat = "", st = otdsCommon.getAttribute (license, 'oTLicenseStatus'); if ( st && st != 'VALID') { stat="style='color: red; font-weight: bold'" } %> <% if(!options.showCertificates){ %> <% }%> <% if(!options.showCertificates){ %> <% }%> <% }) %>
<% if(options.showCertificates){ %> <%= i18n.headers.certificatename %> <% } else { %> <%= i18n.headers.licensename %> <% }%> <%= i18n.headers.resourceid %><%= i18n.headers.oTLicenseExpiryDate %><%= i18n.headers.oTLicenseLicenseUsage %> <%= i18n.headers.oTLicenseProduct %><%= i18n.headers.actions %>
type="checkbox" <% if (checked) { %>checked="checked"<% } %>> ><%= otdsCommon.replaceHTMLCharacters (license.attributes.name) %><%= otdsCommon.replaceHTMLCharacters (license.attributes._oTLicenseResourceName) + " (" + otdsCommon.replaceHTMLCharacters (license.attributes._oTLicenseResource) + ")" %><%= otdsCommon.convertLDAPDateToReadableDate_v2 (otdsCommon.getAttribute (license, 'oTLicenseExpiryDate')) %><%= otdsCommon.replaceHTMLCharacters (usageUnit) %> <%= otdsCommon.replaceHTMLCharacters (license.attributes._oTLicenseProduct) %> <%= i18n.actions.actions %>
  • <%= i18n.actions.properties %>
  • <% if (licenseType == "UNLICENSED") { %>
  • <%= i18n.actions.addLicense %>
  • <% } else { if (otdsCommon.getAttribute (license, "oTLicenseModel") == "USER_BASED" || debugMode) { %>
  • <%= i18n.actions.viewcounters %>
  • <% } %> <% if (isSysAdmin) { %>
  • <%= i18n.actions.generatereport %>
  • <% } %> <% } %>