<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_agent_#{@agent.id}" button_id = "button_close_#{@agent.id}" @title_section = t('common.new_where_used_title', :type => t('common.agent')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent.name @help_link_anchor = HELP_URL_CONFIG['agents']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t("common.jobs")}) do %> <%= t('agents.whereused.assigned_jobs_text', :count => @agent.jobs.count) if @agent.jobs.count > 1 || @agent.jobs.count == 0 %> <%= t('agents.whereused.assigned_job_text', :count => @agent.jobs.count) if @agent.jobs.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-jobs", :section_title => t("common.member_jobs")}) do %> <%= t('agents.whereused.assigned_member_jobs_text', :count => @agent.member_jobs.count) if @agent.member_jobs.count > 1 || @agent.member_jobs.count == 0 %> <%= t('agents.whereused.assigned_member_job_text', :count => @agent.member_jobs.count) if @agent.member_jobs.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-agent-event-monitors", :section_title => t("common.agenteventmonitors")}) do %> <%= t('agents.whereused.assigned_agent_event_monitors_text', :count => @agent.agent_event_monitor_count) if @agent.agent_event_monitor_count > 1 || @agent.agent_event_monitor_count == 0 %> <%= t('agents.whereused.assigned_agent_event_monitor_text', :count => @agent.agent_event_monitor_count) if @agent.agent_event_monitor_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-agent-groups", :section_title => t("common.agent_groups")}) do %> <%= t('agents.whereused.assigned_agent_groups_text', :count => @agent.agent_groups.count) if @agent.agent_groups.count > 1 || @agent.agent_groups.count == 0 %> <%= t('agents.whereused.assigned_agent_group_text', :count => @agent.agent_groups.count) if @agent.agent_groups.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-queues", :section_title => t("common.job_queues")}) do %> <%= t('agents.whereused.assigned_job_queues_text', :count => @agent.job_queues.count) if @agent.job_queues.count > 1 || @agent.job_queues.count == 0 %> <%= t('agents.whereused.assigned_job_queue_text', :count => @agent.job_queues.count) if @agent.job_queues.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-agent", :section_title => t(".switch_section")}) do %> <%= t('agents.whereused.switch_section_preview') %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{url_for(:action => 'index')}', '_self');") %>