<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% chart_id = params[:id] dialog_id = "sap_variant_action_popup_id" width = 685 height = 550 button_id = "button_close_1" form_id = "sap_variant_action" %>
<% form_for @sap_variant, :html => { :id => form_id, :class => "edit_sap_event_command", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %>
<%= form.label :sap_system_definition_id, t_label('sap_variants.sap_variant.sap_system_definition'), :class => "name-label item-label" %>

<%= t('sap_variants.sap_variant.sap_system_definition_caption') %>

<%= form.label :sap_system_environment_id, t_label('sap_variants.sap_variant.sap_system_environment'), :class => "name-label item-label" %>

<%= t('sap_variants.sap_variant.sap_system_environment_caption') %>

<%= form.label :program, t_label('sap_variants.sap_variant.program'), :class => "name-label item-label" %>
<%= form.text_field :program, :disabled => @view_only, :maxLength => 40, :class => "x-form-field name-field" %>

<%= t('sap_variants.sap_variant.program_caption') %>

<%= form.label :variant, t_label('sap_variants.sap_variant.variant'), :class => "name-label item-label" %>
<%= form.text_field :variant, :disabled => @view_only, :maxLength => 14, :class => "x-form-field name-field" %>

<%= t('sap_variants.sap_variant.variant_caption') %>

<% disabled_text = 'disabled="true"' if @view_only %>
/>
<% end %>