<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% form_id = "where_used_remote_event_#{@remote_event.id}" button_id = "button_close_#{@remote_event.id}" @title_section = t('common.new_where_used_title', :type => t('common.remote_event')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @remote_event.remote_object_name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['remote_servers']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t("common.job_dependencies")}) do %> <% job_count = @remote_event.job_count %> <%= t('remote_events.whereused.assigned_jobs_text', :count => job_count) if job_count > 1 || job_count == 0 %> <%= t('remote_events.whereused.assigned_job_text', :count => job_count) if job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t("common.job_suite_dependencies")}) do %> <% job_suite_count = @remote_event.job_suite_count %> <%= t('remote_events.whereused.assigned_job_suites_text', :count => job_suite_count) if job_suite_count > 1 || job_suite_count == 0 %> <%= t('remote_events.whereused.assigned_job_suite_text', :count => job_suite_count) if job_suite_count == 1 %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{@return_referer}', '_self');") %>