<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% fields_for @sap_system_definition do |fields| %>
<%= fields.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= text_field :sap_system_definition, :name, :disabled => @view_only, :maxLength => 20, :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_system_definition, :description, :disabled => @view_only, :maxLength => 150, :value => @sap_system_definition.description, :class => "x-form-field description-field", :style => "overflow:auto;height:64px;" %>

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

<%= fields.label :tag, t_label('common.tags'), :class => "x-form-item label" %>
<%= tags_form_helper(fields, "sap_system_definition[tag_list]", h(@sap_system_definition.tag_list), {:view_only => @view_only}) %>
<%= fields.label :connection_type, t_label('sap_system_definitions.sap_system_definition.connection_type'), :class => "x-form-item label" %>
<%= fields.select :connection_type, [[ SapSystemDefinition.TXT_CUSTOM_APPLICATION_SERVER, SapSystemDefinition::CUSTOM_APPLICATION_SERVER], [ SapSystemDefinition.TXT_GROUP_SERVER_SELECTION, SapSystemDefinition::GROUP_SERVER_SELECTION]], {:disabled=>@view_only} %>

<%= t('sap_system_definitions.sap_system_definition.connection_type_caption') %>

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

<%= t('sap_system_definitions.sap_system_definition.message_server_caption') %>

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

<%= t('sap_system_definitions.sap_system_definition.group_or_server_caption') %>

<%= fields.label :sap_application_server, t_label('sap_system_definitions.index.application_server'), :class => "x-form-item label" %>
<%= text_field :sap_system_definition, :sap_application_server, :disabled => @view_only, :maxLength => 150, :class => "x-form-field client-code-field" %>

<%= t('sap_system_definitions.sap_system_definition.application_server_caption') %>

<%= fields.label :sap_system_number, t_label('sap_system_definitions.index.system_number'), :class => "x-form-item label" %>
<%= text_field :sap_system_definition, :formated_sap_system_number, :disabled => @view_only, :maxLength => 2, :class => "x-form-field client-code-field" %>

<%= t('sap_system_definitions.sap_system_definition.system_number_caption') %>

<%= fields.label :sap_system_id, t_label('sap_system_definitions.index.system_id'), :class => "x-form-item label" %>
<%= text_field :sap_system_definition, :sap_system_id, :disabled => @view_only, :maxLength => 3, :class => "x-form-field client-code-field" %>

<%= t('sap_system_definitions.sap_system_definition.system_id_caption') %>

<%= fields.label :sap_router_string, t_label('sap_system_definitions.index.router_string'), :class => "x-form-item label" %>
<%= text_field :sap_system_definition, :sap_router_string, :disabled => @view_only, :maxLength => 150, :class => "x-form-field client-code-field" %>

<%= t('sap_system_definitions.sap_system_definition.router_string_caption') %>

<%= fields.label :time_zone, t_label('sap_system_definitions.index.timezone'), :class => "x-form-item label" %>

<%= t('sap_system_definitions.sap_system_definition.time_zone_caption') %>

<% following_code_is_only_for_3_0 = false %> <% if following_code_is_only_for_3_0 %>
<%= t('sap_system_definitions.monitor_events_heading') %>
<%= fields.spinner :sap_event_read_back_value, :minValue => 0, :maxValue => 4000, :disabled => @view_only, :class => "sap-event-read-back-value-field" %>
<%= fields.select :sap_event_read_back_period, [[t('sap_system_definitions.monitor_event_type.day_text'), SapSystemDefinition::PERIOD_DAYS], [t('sap_system_definitions.monitor_event_type.hour_text'), SapSystemDefinition::PERIOD_HOURS], [t('sap_system_definitions.monitor_event_type.minute_text'), SapSystemDefinition::PERIOD_MINUTES], [t('sap_system_definitions.monitor_event_type.second_text'), SapSystemDefinition::PERIOD_SECONDS] ], {}, {:disabled => @view_only, :class => "sap-event-read-back-period-field", :style => "width:109px;"} %>

<%= t('sap_system_definitions.monitor_event_text.value_period_caption') %>

<% end %> <% end %>