<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_job_#{@job.id}" button_id = "button_close_#{@job.id}" @title_section = t('common.new_where_used_title', :type => t('common.job')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @job.name @help_link_anchor = HELP_URL_CONFIG['jobs']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do prereq_jobs_count = @job.prereq_jobs_count %> <%= t('jobs.whereused.assigned_jobs_text', :count => prereq_jobs_count) if prereq_jobs_count > 1 || prereq_jobs_count == 0 %> <%= t('jobs.whereused.assigned_job_text', :count => prereq_jobs_count) if prereq_jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t(".job_suites")}) do prereq_job_suites_count = @job.prereq_job_suites_count %> <%= t('jobs.whereused.assigned_job_suites_text', :count => prereq_job_suites_count) if prereq_job_suites_count > 1 || prereq_job_suites_count == 0 %> <%= t('jobs.whereused.assigned_job_suite_text', :count => prereq_job_suites_count) if prereq_job_suites_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 = @job.prereq_remote_servers_count %> <%= t('jobs.whereused.assigned_remote_servers_text', :count => prereq_remote_servers_count) if prereq_remote_servers_count > 1 || prereq_remote_servers_count == 0 %> <%= t('jobs.whereused.assigned_remote_server_text', :count => prereq_remote_servers_count) if prereq_remote_servers_count == 1 %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{@return_referer}', '_self');") %>