<% 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" %>
<%= form.label :sap_system_environment_id, t_label('sap_variants.sap_variant.sap_system_environment'), :class => "name-label item-label" %>
<%= 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" %>
<%= form.label :variant, t_label('sap_variants.sap_variant.variant'), :class => "name-label item-label" %>
<% disabled_text = 'disabled="true"' if @view_only %>
<%= form.text_field :variant, :disabled => @view_only, :maxLength => 14, :class => "x-form-field name-field" %>
/>
<% end %>