%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %> <% form_id = "where_used_sap_system_definition_#{@sap_system_definition.id}" button_id = "button_close_#{@sap_system_definition.id}" @title_section = t('common.new_where_used_title', :type => t('common.sap_system_definition')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @sap_system_definition.name @help_link_anchor = HELP_URL_CONFIG['sap']['system']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-sap-system-environment", :section_title => t(".sap_system_environments")}) do sap_system_environments_count = @sap_system_definition.sap_system_environments.find(:all).count %> <%= t('sap_system_definitions.whereused.assigned_sap_system_environments_text', :count => sap_system_environments_count) if sap_system_environments_count > 1 || sap_system_environments_count == 0 %> <%= t('sap_system_definitions.whereused.assigned_sap_system_environment_text', :count => sap_system_environments_count) if sap_system_environments_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-sap-abap-step-set", :section_title => t(".sap_abap_step_sets")}) do sap_abap_step_sets_count = @sap_system_definition.sap_abap_step_sets.find(:all, :conditions => " sap_abap_set_type = 2 ").count %> <%= t('sap_system_definitions.whereused.assigned_sap_abap_step_sets_text', :count => sap_abap_step_sets_count) if sap_abap_step_sets_count > 1 || sap_abap_step_sets_count == 0 %> <%= t('sap_system_definitions.whereused.assigned_sap_abap_step_set_text', :count => sap_abap_step_sets_count) if sap_abap_step_sets_count == 1 %> <% end %> <%# <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-sap-event-monitor", :section_title => t(".sap_event_monitors")}) do sap_event_monitors_count = @sap_system_definition.sap_event_monitors.count %> <%# commented out for Sap 2.0%> <%# <%= t('sap_system_definitions.whereused.assigned_sap_event_monitors_text', :count => sap_event_monitors_count) if sap_event_monitors_count > 1 || sap_event_monitors_count == 0 %> <%# <%= t('sap_system_definitions.whereused.assigned_sap_event_monitor_text', :count => sap_event_monitors_count) if sap_event_monitors_count == 1 %> <%# <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-sap-run-intercepted_job", :section_title => t(".sap_run_intercept_jobs")}) do %> <%= t('sap_system_definitions.whereused.assigned_sap_run_intercepted_jobs_text', :count => @referred_sap_run_intercepted_job_count) if @referred_sap_run_intercepted_job_count > 1 || @referred_sap_run_intercepted_job_count == 0 %> <%= t('sap_system_definitions.whereused.assigned_sap_run_intercepted_job_text', :count => @referred_sap_run_intercepted_job_count) if @referred_sap_run_intercepted_job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-command-set", :section_title => t(".command_sets")}) do command_sets_count = @sap_system_definition.referred_command_sets_count %> <%= t('sap_system_definitions.whereused.assigned_command_sets_text', :count => command_sets_count) if command_sets_count > 1 || command_sets_count == 0 %> <%= t('sap_system_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-job", :section_title => t(".jobs")}) do jobs_count = @sap_system_definition.referred_jobs_count %> <%= t('sap_system_definitions.whereused.assigned_jobs_text', :count => jobs_count) if jobs_count > 1 || jobs_count == 0 %> <%= t('sap_system_definitions.whereused.assigned_job_text', :count => jobs_count) if jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-job", :section_title => t(".member_jobs")}) do member_jobs_count = @sap_system_definition.referred_member_jobs_count %> <%= t('sap_system_definitions.whereused.assigned_member_jobs_text', :count => member_jobs_count) if member_jobs_count > 1 || member_jobs_count == 0 %> <%= t('sap_system_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-switch-sap-system-definition", :section_title => t(".switch_section")}) do %> <%= t('sap_system_definitions.whereused.switch_section_preview') %> <% end %>