<%# (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 %> <% form_for(@job, :url => update_prerequisite_statuses_job_path(@job.id), :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 => '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 %> <%= render( :partial => 'edit_prerequisite_statuses', :layout => 'shared/edit_section', :locals => { :section_id => "job-prerequisites", :section_title => t('common.prerequisites_title'), :details_only => true}) %>
<%= standard_buttons(button_id) %>
<% end %>