<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% fields_for @sap_job_definition do |fields| %> <% if @sap_job_definition.sap_system_environment.nil? @sap_job_definition.build_sap_system_environment() @sap_job_definition.sap_system_environment.build_sap_system_definition() end %>
<%= fields.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= text_field :sap_job_definition, :name, :disabled => @view_only, :maxLength => 32, :value => @sap_job_definition.name, :class => "x-form-field name-field" %>

<%= t('common.name_caption') %>

<%= fields.label :description, t_label('common.description'), :class => "description-label item-label" %>
<%= text_area :sap_job_definition, :description, :disabled => @view_only, :maxLength => 100, :value => @sap_job_definition.description, :class => "x-form-field description-field" %>

<%= t('common.description_caption') %>

<%= fields.label :tag, t_label('common.tags'), :class => "x-form-item label" %>
<%= tags_form_helper(fields, "sap_job_definition[tag_list]", h(@sap_job_definition.tag_list), {:view_only => @view_only}) %>
<%= fields.label :sap_system_definition, t_label('sap_job_definitions.sap_job_definition.sap_system_definition'), :class => "x-form-item label" %>

<%= t('sap_job_definitions.sap_job_definition.sap_system_definition_caption') %>

<%= fields.label :sap_system_environment, t_label('sap_job_definitions.sap_job_definition.sap_system_environment'), :class => "x-form-item label" %>

<%= t('sap_job_definitions.sap_job_definition.sap_system_environment_caption') %>

<%= fields.label :sap_job_definition_name, t_label('sap_job_definitions.sap_job_definition.sap_job_class'), :class => "x-form-item label" %>

<%= t('sap_job_definitions.sap_job_definition.sap_job_class_caption') %>

<%= fields.label :sap_exec_target, t_label('sap_job_definitions.sap_job_definition.sap_exec_target'), :class => "x-form-item label" %>
<%= text_field :sap_job_definition, :sap_exec_target, :disabled => @view_only, :maxLength => 20, :class => "x-form-field client-code-field" %>

<%= t('sap_job_definitions.sap_job_definition.sap_exec_target_caption') %>

<%= fields.label :sap_recipient_type, t_label('sap_job_definitions.sap_job_definition.sap_recipient_type'), :class => "x-form-item label" %>

<%= t('sap_job_definitions.sap_job_definition.sap_recipient_type_caption') %>

<%= fields.label :sap_deliver, t_label('sap_job_definitions.sap_job_definition.sap_deliver'), :class => "x-form-item label" %>

<%= t('sap_job_definitions.sap_job_definition.sap_deliver_caption') %>

<%= fields.label :sap_spool_list_recipient, t_label('sap_job_definitions.sap_job_definition.sap_spool_list_recipient'), :class => "x-form-item label" %>
<%= text_field :sap_job_definition, :sap_spool_list_recipient, :disabled => @view_only, :maxLength => 256, :class => "x-form-field client-code-field" %>

<%= t('sap_job_definitions.sap_job_definition.sap_spool_list_recipient_caption') %>

/> <%= t('sap_job_definitions.sap_job_definition.sslr_copy') %>      /> <%= t('sap_job_definitions.sap_job_definition.sslr_express') %>      /> <%= t('sap_job_definitions.sap_job_definition.sslr_blind_copy') %>      /> <%= t('sap_job_definitions.sap_job_definition.sslr_no_forwarding') %>
<%# TODO - Remove the hidden field when we add the copy spool list back in. %> <%#*
%> <%#= fields.label :sap_spool_list_recipient, t_label('sap_job_definitions.sap_job_definition.sap_copy_spool_list'), :class => "name-label item-label" %> <%#*
%> <%#= fields.check_box :copy_spool_files, :disabled => @view_only %> <%#*

%> <%#= t('sap_job_definitions.sap_job_definition.sap_copy_spool_list_caption') %> <%#*

%> <%#*
%> <%#*
%> <%#*
%>
<%= fields.label :sap_spool_list_recipient, t_label('sap_job_definitions.sap_job_definition.sap_start_immediately'), :class => "name-label item-label" %>
<%= fields.check_box :start_immediately, :disabled => @view_only %>

<%= t('sap_job_definitions.sap_job_definition.sap_job_start_immediately_caption') %>

<%= fields.label :wait_for_child_jobs, t_label('sap_job_definitions.sap_job_definition.wait_for_child_jobs'), :class => "name-label item-label" %>
<%= fields.check_box :wait_for_child_jobs, :disabled => @view_only %>

<%= t('sap_job_definitions.sap_job_definition.wait_for_child_jobs_caption') %>

<% end %>