% # (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% if @job.job_type == JobSuite::JOB_TYPE url = job_suite_path(@job.id) jobParamsListPath = edit_job_suite_path(@job.id, :list => 'job_params') parent_type = "job_suite" elsif @job.job_type == MemberJob::JOB_TYPE if @editing_view.nil? || !@editing_view url = member_job_path(@job.id) jobParamsListPath = edit_member_job_path(@job.id, :list => 'job_params') parent_type = "member_job" else url = job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id) jobParamsListPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :list => 'job_params') parent_type = "member_job" end else url = job_path(@job.id) jobParamsListPath = edit_job_path(@job.id, :list => 'job_params') parent_type = "job" end button_id = "button_close_#{@job.id}" form_id = "job_params_#{@job.id}" @title_section = t('jobs.job_params.title', :job_type => parent_type.titleize) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = @job.name @help_link_anchor = HELP_URL_CONFIG['jobs']['job_parameters'] %> <% form_for(@job, :url => 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( :layout => 'shared/edit_section', :locals => { :section_id => "job-general", :section_title => t('common.general_title'), :summary_only => true}) do %>
<%= h parent_type.titleize %> <%= t_label("common.name") %>
<%= h @job.name %>