<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% button_id = "button_close_#{@automate_system_definition.id}" form_id = @automate_system_definition.new_record? ? "new_automate_system_definition" : "edit_automate_system_definition_#{@automate_system_definition.id}" dialog_id = "edit_#{@automate_system_definition.id}" url = @automate_system_definition.new_record? ? automate_system_definitions_path : automate_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 @automate_system_definition.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['automate_system_definitions']['settings'] %> <% form_for @automate_system_definition, :html => { :id => form_id, :class => "edit_automate_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 => "automate-general", :section_title => t('common.general_title')}) do %>

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

<%= h @automate_system_definition.name %>

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

<%= h @automate_system_definition.description %>

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

<%= h @automate_system_definition.tag_list %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "automate-server-information", :section_title => t('automate_system_definitions.automate_system_definition.server_information_tab')}) do %>

<%= t_label('automate_system_definitions.edit_server_information.system_type') %>

<%= system_type_label(@automate_system_definition.system_type) unless @automate_system_definition.nil? %>

<%= t_label('automate_system_definitions.index.endpoint_url') %>

<%= h @automate_system_definition.endpoint_url unless @automate_system_definition.nil? %>

<%= t_label('automate_system_definitions.edit_server_information.username') %>

<%= h (@automate_system_definition.system_type == 1 || @automate_system_definition.system_type == 3)? 'Remote Administration' : @automate_system_definition.username %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "automate-polling-configuration", :section_title => t('automate_system_definitions.automate_system_definition.polling_config_tab')}) do %>

<%= t_label('automate_system_definitions.edit_polling_configuration.status_polling_interval') %>

<%= h @automate_system_definition.status_polling_interval unless @automate_system_definition.nil? %>

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