<%= render :partial => "server_information_section"%>
<%if @primary_licenses.length > 0
index = 0
@primary_licenses.each do |primary_license|
@current_license = primary_license
@link_primary = (link_to_popup t('common.enter_license_code'), :url => edit_license_path(:id => primary_license.getId()), :method => :get).gsub("'", "'")
if primary_license.isValidStandby(@hardware_hash)
@link_primary_clear = link_to_function(t("common.clear"), "clearPrimaryLicense(this, helpsys.locale.licenses.primary_license_header.clear_standby_license_confirmation)", ":method => :get", :id => primary_license.getId(), :class => "clear")
else
@link_primary_clear = link_to_function(t("common.clear"), "clearPrimaryLicense(this, helpsys.locale.licenses.primary_license_header.clear_primary_license_confirmation)", ":method => :get", :id => primary_license.getId(), :class => "clear")
end
index+=1
if !License.find(primary_license.getId()).is_valid_license_code?
@primary_class = 'accordion-title-red'
license_text = "(Invalid License)"
else
if primary_license.isValidStandby(@hardware_hash)
@primary_class = 'accordion-title-yellow'
license_text = "(Standby)"
else
inUseID = @license_info.getPrimaryLicense().getId()
if inUseID == primary_license.getId()
license_text = "(Primary)"
@primary_class = 'accordion-title-green'
else
license_text = "(Primary not used)"
@primary_class = 'accordion-title-yellow'
end
end
end
%>
<%= render :partial => "primary_license_section" %>
<% end %>
<% end %>
<%
@link_primary = (link_to_popup t('common.enter_license_code'), :url => edit_license_path(:id => -1), :method => :get).gsub("'", "'")
num = @primary_licenses.length
%>
<%= t 'licenses.license_code_information.no_license'%>
<%
@link_trial = (link_to_popup t('common.enter_license_code'), :url => edit_license_path(:id => @trial_license ? @trial_license.id : -2), :method => :get).gsub("'", "'")
@link_clear = link_to_function(t("common.clear"), "clearTrialLicense()", ":method => :get", :class => "clear") unless @trial_license.nil?
%>
<%= render :partial => "trial_license_section" %>