<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% button_id = "button_close_#{@sap_system_environment.id}" form_id = "new_sap_system_environment" @title = t('sap_system_environments.sap_system_environment.dialog_title') @title_section = t('sap_system_environments.sap_system_environment.dialog_title') @title_item = t('common.new_caption') @help_link_anchor = HELP_URL_CONFIG['sap']['environments']['settings'] %> <% form_for @sap_system_environment, :url => sap_system_definition_sap_system_environments_path, :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( :partial => "edit_general", :layout => 'shared/edit_section', :locals => { :section_id => "sap-system-environment-general", :section_title => t('common.general_title'), :details_only => true}) %> <%= render( :partial => "edit_user_profile", :layout => 'shared/edit_section', :locals => { :section_id => "sap-user-profile-settings", :section_title => t('sap_system_environments.sap_system_environment.user_profile_tab'), :details_only => true}) %>
<%= 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 %>