<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% button_id = "button_close_#{@remote_server.id}" form_id = @remote_server.new_record? ? "new_remote_server" : "edit_remote_server_#{@remote_server.id}" dialog_id = "edit_#{@remote_server.id}" url = @remote_server.new_record? ? remote_servers_path : remote_server_path view_only = (@view_only) is_created_by_remote = (@is_created_by_remote) @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @remote_server.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['remote_servers']['settings'] %> <% form_for @remote_server, :html => { :id => form_id, :class => "edit_remote_server", :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 => "remote-server-general", :section_title => t('common.general_title')}) do %>

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

<%= h @remote_server.name %>

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

<%= h @remote_server.description %>

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

<%= h @remote_server.tag_list %>

<%= t_label('remote_servers.edit_general.server_type') %>

<%= h RemoteServer::get_server_type(@remote_server.server_type) %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "remote-server-information", :section_title => t('remote_servers.remote_server.remote_server_information_tab'), :details_only => is_created_by_remote }) do %> <% unless is_created_by_remote %> <% if @remote_server.server_type == RemoteServer::ROBOT_SCHEDULE_SERVER_TYPE%>

<%= t_label('remote_servers.edit_remote_server_information.system_name') %>

<%= h @remote_server.remote_schedule_server.system_name unless @remote_server.remote_schedule_server.nil? %>

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

<%= h @remote_server.remote_schedule_server.user_name unless @remote_server.remote_schedule_server.nil? %>

<% else %>

<%= t_label('remote_servers.edit_remote_automate_server_information.ip_address') %>

<%= h @remote_server.remote_automate_server.ip_address unless @remote_server.remote_automate_server.nil? %>

<%= t_label('remote_servers.edit_remote_automate_server_information.port_number') %>

<%= h @remote_server.remote_automate_server.port_number unless @remote_server.remote_automate_server.nil? %>

<% end %> <% else %>

<%= t('remote_servers.edit_remote_automate_server_information.note_for_secondary') %>

<% end %> <% end %>
<%= standard_buttons(button_id) %> <% unless is_created_by_remote %> <%= button_to_function(t('remote_servers.edit_remote_server_information.test_connection'), "try {helpsys.CntMgr.getController('#{form_id}').testConnection();} catch(e) {console.log(e);};return false;", :id => "remote_server_test_connection" ) %> <% end %>
<% end %>