<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %> <% form_id = "where_used_sap_job_definition_#{@sap_job_definition.id}" button_id = "button_close_#{@sap_job_definition.id}" @title_section = t('common.new_where_used_title', :type => t('common.sap_job_definition')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @sap_job_definition.name @help_link_anchor = HELP_URL_CONFIG['sap']['job']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do jobs_count = @sap_job_definition.referred_jobs_count %> <%= t('sap_job_definitions.whereused.assigned_jobs_text', :count => jobs_count) if jobs_count > 1 || jobs_count == 0 %> <%= t('sap_job_definitions.whereused.assigned_job_text', :count => jobs_count) if jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-jobs", :section_title => t(".member_jobs")}) do member_jobs_count = @sap_job_definition.referred_member_jobs_count %> <%= t('sap_job_definitions.whereused.assigned_member_jobs_text', :count => member_jobs_count) if member_jobs_count > 1 || member_jobs_count == 0 %> <%= t('sap_job_definitions.whereused.assigned_member_job_text', :count => member_jobs_count) if member_jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-command-sets", :section_title => t(".command_sets")}) do command_sets_count = @sap_job_definition.referred_command_sets_count %> <%= t('sap_job_definitions.whereused.assigned_command_sets_text', :count => command_sets_count) if command_sets_count > 1 || command_sets_count == 0 %> <%= t('sap_job_definitions.whereused.assigned_command_set_text', :count => command_sets_count) if command_sets_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-sap-job", :section_title => t(".switch_section")}) do %> <%= t('sap_job_definitions.whereused.switch_section_preview') %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{url_for(:action => 'index')}', '_self');") %>