<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@sap_system_definition.id}" form_id = @sap_system_definition.new_record? ? "new_sap_system_definition" : "edit_sap_system_definition_#{@sap_system_definition.id}" dialog_id = "edit_#{@sap_system_definition.id}" url = @sap_system_definition.new_record? ? sap_system_definitions_path : sap_system_definition_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_definition.name @help_link_anchor = HELP_URL_CONFIG['sap']['system']['settings'] %> <% form_for @sap_system_definition, :html => { :id => form_id, :class => "edit_sap_system_definition", :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-definition-general", :section_title => t('common.general_title')}) do %>

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

<%= h @sap_system_definition.name %>

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

<%= h @sap_system_definition.description %>

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

<%= h @sap_system_definition.tag_list %>

<%= t_label('sap_system_definitions.sap_system_definition.connection_type') %>

<%= h @sap_system_definition.connection_type_name %>

<%= t_label('sap_system_definitions.index.message_server') %>

<%= h @sap_system_definition.message_server %>

<%= t_label('sap_system_definitions.sap_system_definition.group_server') %>

<%= h @sap_system_definition.group_or_server %>

<%= t_label('sap_system_definitions.index.application_server') %>

<%= h @sap_system_definition.sap_application_server %>

<%= t_label('sap_system_definitions.index.system_number') %>

<%= h @sap_system_definition.formated_sap_system_number %>

<%= t_label('sap_system_definitions.index.system_id') %>

<%= h @sap_system_definition.sap_system_id %>

<%= t_label('sap_system_definitions.index.router_string') %>

<%= h @sap_system_definition.sap_router_string %>

<%= t_label('sap_system_definitions.index.timezone') %>

<%= h @sap_system_definition.time_zone %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "defaul-sap-system-environment", :section_title => t('sap_system_definitions.sap_system_definition.default_environment_tab')}) do %>

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

<%= h @sap_system_definition.default_environment.formated_sap_client_code %>

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

<%= h @sap_system_definition.default_environment.language_code.name %>

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

<%= h @sap_system_definition.default_environment.sap_username %>

<% end %> <%# TODO - Remove SNC section from System Definition dialog. %> <%# render(:layout => 'shared/edit_section', :locals => { :section_id => "sap-secure-network-settings", :section_title => t('sap_system_definitions.sap_system_definition.secure_network_settings_tab')}) do %> <%# if @sap_system_definition.sap_use_snc %>

<%#= t('sap_system_definitions.sap_system_definition.security_is_enabled') %>

<%# else %>

<%#= t('sap_system_definitions.sap_system_definition.security_is_disabled') %>

<%# end %> <%# end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "sap-intercepted-jobs-settings", :section_title => t('sap_system_definitions.sap_system_definition.intercepted_jobs_settings_tab')}) do %> <% if @sap_system_definition.poll_intercepted_jobs %>

<% if @sap_system_definition.poll_interval_in_hours>0 %> <%= t('sap_system_definitions.sap_system_definition.poll_with_interval_full', :hours=>@sap_system_definition.poll_interval_in_hours, :minutes=>@sap_system_definition.poll_interval_in_minutes) %> <% else %> <%= t('sap_system_definitions.sap_system_definition.poll_with_interval_only_minutes', :minutes=>@sap_system_definition.poll_interval_in_minutes)%> <% end %>

<% else %>

<%= t('sap_system_definitions.sap_system_definition.poll_is_disabled') %>

<% end %> <% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "sap-polled-jobs-settings", :section_title => t('sap_system_definitions.sap_system_definition.polled_jobs_settings_tab')}) do %> <% if @sap_system_definition.poll_jobs %>

<% if @sap_system_definition.poll_job_interval_in_hours > 0 %> <%= t('sap_system_definitions.sap_system_definition.poll_with_hours_and_minutes', :hours=>@sap_system_definition.poll_job_interval_in_hours, :minutes=>@sap_system_definition.poll_job_interval_in_minutes) %> <% else %> <%= t('sap_system_definitions.sap_system_definition.poll_with_only_minutes', :minutes=>@sap_system_definition.poll_job_interval_in_minutes)%> <% end %>

<% else %>

<%= t('sap_system_definitions.sap_system_definition.poll_is_disabled') %>

<% end %> <% end %> <%# <% render(:layout => 'shared/edit_section', :locals => { :section_id => "xbp-level", :section_title => t('sap_system_definitions.sap_system_definition.xbp_level_tab')}) do %> <%#

<%= t_label('sap_system_definitions.sap_system_definition.xbp_version_label') %> <%#

<%#

<%= h @sap_system_definition.xbp_version %> <%#

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "xmi-audit-level", :section_title => t('sap_system_definitions.sap_system_definition.xmi_audit_level_tab')}) do %>

<%= t_label('sap_system_definitions.index.xmi_audit_level') %>

<%= h @sap_system_definition.xmi_audit_level_name %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "sld-registration-information", :section_title => t('sap_system_definitions.sap_system_definition.sld_registration_heading')}) do %> <% if @sap_system_definition.sld_register %>

<%= t('sap_system_definitions.edit_sld_registration_information.system_name_summary', :system_name => @sap_system_definition.sld_local_system_name, :computer_name => @sap_system_definition.sld_computer_name) %>

<% else %>

<%= t('sap_system_definitions.edit_sld_registration_information.not_registered') %>

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