%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_agent_environment_#{@agent_environment.id}" button_id = "button_close_#{@agent_environment.id}" @title_section = t('common.new_where_used_title', :type => t('common.agent_environment')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent_environment.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['agent_environments']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do %> <%= t('agent_environments.whereused.assigned_jobs_text', :count => @agent_environment.job_count) if @agent_environment.job_count > 1 || @agent_environment.job_count == 0 %> <%= t('agent_environments.whereused.assigned_job_text', :count => @agent_environment.job_count) if @agent_environment.job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-jobs", :section_title => t(".member_jobs")}) do member_job_count = @agent_environment.member_job_count %> <%= t('agent_environments.whereused.assigned_member_jobs_text', :count => member_job_count) if member_job_count > 1 || member_job_count == 0 %> <%= t('agent_environments.whereused.assigned_member_job_text', :count => member_job_count) if member_job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-environment", :section_title => t(".switch_section")}) do %> <%= t('agent_environments.whereused.switch_section_preview') %> <% end %>