<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@sap_system_environment.id}" form_id = @sap_system_environment.new_record? ? "new_sap_system_environment" : "edit_sap_system_environment_#{@sap_system_environment.id}" dialog_id = "edit_#{@sap_system_environment.id}" url = @sap_system_environment.new_record? ? sap_system_definition_sap_system_environments_path : sap_system_definition_sap_system_environment_path view_only = (@view_only) @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @sap_system_environment.name @help_link_anchor = HELP_URL_CONFIG['sap']['environments']['settings'] %> <% form_for @sap_system_environment, :url => sap_system_definition_sap_system_environment_path(@sap_system_environment.sap_system_definition_id, @sap_system_environment.id ), :html => { :id => form_id, :class => "edit_sap_system_environment", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "sap-system-environment-general", :section_title => t('common.general_title')}) do %>

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

<%= h @sap_system_environment.name %>

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

<%= h @sap_system_environment.description %>

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

<%= h @sap_system_environment.tag_list %>

<%= t_label('sap_system_environments.index.client_code') %>

<%= h @sap_system_environment.formated_sap_client_code %>

<%= t_label('sap_system_environments.index.language') %>

<%= h @sap_system_environment.language_code.name %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "sap-user-profile-settings", :section_title => t('sap_system_environments.sap_system_environment.user_profile_tab')}) do %>

<%= t_label('sap_system_environments.index.username') %>

<%= h @sap_system_environment.sap_username %>

<% end %>
<%= standard_buttons(button_id) %> <%= button_to_function(t('sap_system_definitions.sap_system_definition.validate_btn'), "try {helpsys.CntMgr.getController('#{form_id}').verifySystemEnvironment();} catch(e) {console.log(e);};return false;", :class => "save-button") %>
<% end %>