<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% fields_for @sap_system_environment do |fields| %> <% if @sap_system_environment.is_default? %>

<%= t_label('common.name') %>

<%= h @sap_system_environment.name %>

<% else %>
<%= fields.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= text_field :sap_system_environment, :name, :disabled => @view_only, :maxLength => 20, :class => "x-form-field name-field" %>

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

<% end %>
<%= fields.label :description, t_label('common.description'), :class => "description-label item-label" %>
<%= text_area :sap_system_environment, :description, :disabled => @view_only, :maxLength => 150, :value => params[:action]=='new' ? "":@sap_system_environment.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_environment[tag_list]", h(@sap_system_environment.tag_list), {:view_only => @view_only}) %>
<%= fields.label :sap_client_code, t_label('sap_system_environments.index.client_code'), :class => "x-form-item label" %>
<%= text_field :sap_system_environment, :formated_sap_client_code, :disabled => @view_only, :maxLength => 3, :class => "x-form-field client-code-field" %>

<%= t('sap_system_environments.sap_system_environment.client_code_caption') %>

<%= fields.label :language_code, t_label('sap_system_environments.index.language'), :class => "x-form-item label" %>
<%= fields.hidden_field :language_code_id %>

<%= t('sap_system_environments.sap_system_environment.language_caption') %>

<% end %>