<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_job_suite_#{@job_suite.id}" button_id = "button_close_#{@job_suite.id}" @title_section = t('common.new_where_used_title', :type => t('common.job_suite')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @job_suite.name @help_link_anchor = HELP_URL_CONFIG['job_suites']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do preq_jobs_count = @job_suite.prereq_jobs_count %> <%= t('job_suites.whereused.assigned_jobs_text', :count => preq_jobs_count) if preq_jobs_count > 1 || preq_jobs_count == 0 %> <%= t('job_suites.whereused.assigned_job_text', :count => preq_jobs_count) if preq_jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs-as-member-jobs", :section_title => t(".jobs_as_member_jobs")}) do %> <%= t('job_suites.whereused.assigned_jobs_as_member_jobs_text', :count => @preq_jobs_as_member_jobs_count) if @preq_jobs_as_member_jobs_count > 1 || @preq_jobs_as_member_jobs_count == 0 %> <%= t('job_suites.whereused.assigned_job_as_member_jobs_text', :count => @preq_jobs_as_member_jobs_count) if @preq_jobs_as_member_jobs_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t(".job_suites")}) do preq_job_suites_count = @job_suite.prereq_job_suites_count %> <%= t('job_suites.whereused.assigned_job_suites_text', :count => preq_job_suites_count) if preq_job_suites_count > 1 || preq_job_suites_count == 0 %> <%= t('job_suites.whereused.assigned_job_suite_text', :count => preq_job_suites_count) if preq_job_suites_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites-as-member-jobs", :section_title => t(".job_suites_as_member_jobs")}) do %> <%= t('job_suites.whereused.assigned_job_suites_as_member_jobs_text', :count => @preq_job_suites_as_member_jobs_count) if @preq_job_suites_as_member_jobs_count > 1 || @preq_job_suites_as_member_jobs_count == 0 %> <%= t('job_suites.whereused.assigned_job_suite_as_member_jobs_text', :count => @preq_job_suites_as_member_jobs_count) if @preq_job_suites_as_member_jobs_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_suite.prereq_remote_servers_count %> <%= t('job_suites.whereused.assigned_remote_servers_text', :count => prereq_remote_servers_count) if prereq_remote_servers_count > 1 || prereq_remote_servers_count == 0 %> <%= t('job_suites.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');") %>