%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_agent_event_monitor_#{@agent_event_monitor.id}" button_id = "button_close_#{@agent_event_monitor.id}" @title_section = t('common.new_where_used_title', :type => t('common.agent_event_monitor')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent_event_monitor.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['agent_event_monitors']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do %> <%= t('agent_event_monitors.whereused.assigned_jobs_text', :count => @agent_event_monitor.job_count) if @agent_event_monitor.job_count > 1 || @agent_event_monitor.job_count == 0 %> <%= t('agent_event_monitors.whereused.assigned_job_text', :count => @agent_event_monitor.job_count) if @agent_event_monitor.job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t(".job_suites")}) do %> <%= t('agent_event_monitors.whereused.assigned_job_suites_text', :count => @agent_event_monitor.job_suite_count) if @agent_event_monitor.job_suite_count > 1 || @agent_event_monitor.job_suite_count == 0 %> <%= t('agent_event_monitors.whereused.assigned_job_suite_text', :count => @agent_event_monitor.job_suite_count) if @agent_event_monitor.job_suite_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-remote-servers", :section_title => t(".remote_servers")}) do prereq_remote_servers_count = @agent_event_monitor.prereq_remote_servers_count %> <%= t('agent_event_monitors.whereused.assigned_remote_servers_text', :count => prereq_remote_servers_count) if prereq_remote_servers_count > 1 || prereq_remote_servers_count == 0 %> <%= t('agent_event_monitors.whereused.assigned_remote_server_text', :count => prereq_remote_servers_count) if prereq_remote_servers_count == 1 %> <% end %>