<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_close_#{@job.id}" form_id = "job_prerequisites_#{@job.id}" @title_section = t('.title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = @job.name @help_link_anchor = HELP_URL_CONFIG['jobs']['job_prerequisite_statuses'] if @job.job_type == JobSuite::JOB_TYPE prereqListPath = edit_job_suite_path(@job.id, :list => 'prerequisites_status') update_url = update_prerequisite_statuses_job_suite_path(@job.id) else prereqListPath = edit_job_path(@job.id, :list => 'prerequisites_status') update_url = update_prerequisite_statuses_job_path(@job.id) end %> <% form_for(@job, :url => update_url, :html => { :id => form_id, :class => "edit_job", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"}) do |form| %> <%= render( :partial => 'jobs/edit_prerequisite_agents', :layout => 'shared/edit_section', :locals => { :section_id => "job-agent", :section_title => t('common.agent'), :details_only => true}) if @job.target_type == AgentGroup.to_s && @agent_group_type == AgentGroup::ALL_AGENTS %> <%= render( :partial => 'jobs/edit_prerequisite_statuses', :layout => 'shared/edit_section', :locals => { :section_id => "job-prerequisites", :section_title => t('common.prerequisites_title'), :details_only => true}) %>
<%= button_to_function(t('jobs.edit_prerequisite_status.clear_all'), "controller.clearAllPrerequisiteStatuses();") %> <%= standard_buttons(button_id) %>
<% end %>