%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% form_id = "where_used_agent_group_#{@agent_group.id}" button_id = "button_close_#{@agent_group.id}" @title_section = t('common.new_where_used_title', :type => t('common.agent_group')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent_group.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['agent_groups']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do %> <%= t('agent_groups.whereused.assigned_jobs_text', :count => @agent_group.jobs.count) if @agent_group.jobs.count > 1 || @agent_group.jobs.count == 0 %> <%= t('agent_groups.whereused.assigned_job_text', :count => @agent_group.jobs.count) if @agent_group.jobs.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-jobs", :section_title => t(".member_jobs")}) do %> <%= t('agent_groups.whereused.assigned_member_jobs_text', :count => @agent_group.member_jobs.count) if @agent_group.member_jobs.count > 1 || @agent_group.member_jobs.count == 0 %> <%= t('agent_groups.whereused.assigned_member_job_text', :count => @agent_group.member_jobs.count) if @agent_group.member_jobs.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-agent-event-monitors", :section_title => t(".agent_event_monitors")}) do %> <%= t('agent_groups.whereused.assigned_agent_event_monitors_text', :count => @agent_group.agent_event_monitors.count) if @agent_group.agent_event_monitors.count > 1 || @agent_group.agent_event_monitors.count == 0 %> <%= t('agent_groups.whereused.assigned_agent_event_monitor_text', :count => @agent_group.agent_event_monitors.count) if @agent_group.agent_event_monitors.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-group", :section_title => t(".switch_section")}) do %> <%= t('agent_groups.whereused.switch_caption') %> <% end %>