%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% button_id = "button_close_#{@sap_job_definition.id}" form_id = @sap_job_definition.new_record? ? "new_sap_job_definition" : "edit_sap_job_definition_#{@sap_job_definition.id}" dialog_id = "edit_#{@sap_job_definition.id}" url = @sap_job_definition.new_record? ? sap_job_definitions_path : sap_job_definition_path view_only = (@view_only) @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @sap_job_definition.name @help_link_anchor = HELP_URL_CONFIG['sap']['job']['settings'] %> <% form_for @sap_job_definition, :html => { :id => form_id, :class => "edit_sap_job_definition", :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 => "sap-job-general", :section_title => t('common.general_title')}) do %>
<%= t_label('common.name') %>
<%= h @sap_job_definition.name %>
<%= t_label('common.description') %>
<%= h @sap_job_definition.description %>
<%= t_label('common.tags') %>
<%= h @sap_job_definition.tag_list %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_system_definition") %>
<%= h @sap_job_definition.sap_system_definition.name %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_system_environment") %>
<%= h @sap_job_definition.sap_system_environment.name %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_job_class") %>
<%= h @sap_job_definition.sap_job_class %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_exec_target") %>
<%= h @sap_job_definition.sap_exec_target %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_recipient_type") %>
<%= h @sap_job_definition.sap_recipient_type_text %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_deliver") %>
<%= h @sap_job_definition.sap_deliver_text %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_spool_list_recipient") %>
<%= h @sap_job_definition.sap_spool_list_recipient %>
<%= t_label("sap_job_definitions.sap_job_definition.sap_copy_spool_list") %> <%#*
%> <%#*<%= @sap_job_definition.copy_spool_files? ? t("common.key_yes") : t("common.key_no") %> <%#*
%> <%#*<%= t_label("sap_job_definitions.sap_job_definition.sap_start_immediately") %>
<%= @sap_job_definition.start_immediately? ? t("common.key_yes") : t("common.key_no") %>
<%= t_label("sap_job_definitions.sap_job_definition.wait_for_child_jobs") %>
<%= @sap_job_definition.wait_for_child_jobs_text %>
<%= t_label('common.sap_abap_step_set') %>
<% if !@sap_job_definition.sap_abap_step_set.nil? %> <% if @sap_job_definition.sap_abap_step_set.shared? %><%= h @sap_job_definition.sap_abap_step_set.name %>
<% elsif @sap_job_definition.sap_abap_step_set.sap_abap_steps.count == 1 %><%= t('sap_job_definitions.sap_job_definition.step', :count => @sap_job_definition.sap_abap_step_set.sap_abap_steps.count) %>
<% else %><%= t('sap_job_definitions.sap_job_definition.steps', :count => @sap_job_definition.sap_abap_step_set.sap_abap_steps.count) %>
<% end %> <% end %>