<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_special_instance_#{@special_instance.id}" button_id = "button_close_#{@special_instance.id}" @title_section = t('common.new_where_used_title', :type => t('common.special_instance')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @special_instance.name @help_link_anchor = HELP_URL_CONFIG['jobs']['job_special_instances']['job_special_instances_where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t("common.job_dependencies")}) do %> <% job_count = @special_instance.job_count %> <%= t('special_instances.whereused.assigned_jobs_text', :count => job_count) if job_count > 1 || job_count == 0 %> <%= t('special_instances.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 = @special_instance.job_suite_count %> <%= t('special_instances.whereused.assigned_job_suites_text', :count => job_suite_count) if job_suite_count > 1 || job_suite_count == 0 %> <%= t('special_instances.whereused.assigned_job_suite_text', :count => job_suite_count) if job_suite_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member_jobs", :section_title => t("common.member_job_skip_instances")}) do %> <% skip_count = @special_instance.skip_count %> <%= t('special_instances.whereused.skipped_jobs_text', :count => skip_count) if skip_count > 1 || skip_count == 0 %> <%= t('special_instances.whereused.skipped_job_text', :count => skip_count) if skip_count == 1 %> <% end if @special_instance.parent_type == "JobSuite" %>
<%= button_to_function(t('common.close'), "window.open('#{url_for(:action => 'index')}', '_self');") %>