<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_close_#{@file_transfer_system.id}" form_id = "edit_file_transfer_system_#{@file_transfer_system.id}" @title_section = t('common.file_transfer_system') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @file_transfer_system.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['file_transfer_systems']['file_transfer_system_settings'] %> <% form_for @file_transfer_system, :html => {:id => form_id,:class => "edit_file_transfer_system",: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 => "file-transfer-system-general", :section_title => t('common.general_title')}) do %>

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

<%= h @file_transfer_system.name %>

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

<%= h @file_transfer_system.description %>

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

<%= h @file_transfer_system.tag_list %>

<%= t_label('file_transfer_systems.transfer_type')%>

<%= h @transfer_type_name %>

<%= t_label('file_transfer_systems.system_name')%>

<%= h @file_transfer_system.system_name %>

<% if @file_transfer_system.transfer_type == FileTransferSystem::TYPE_SFTP %>

<%= t_label('file_transfer_systems.authentication_type')%>

<%= h @file_transfer_system.authentication_type_name %>

<% end %>

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

<%= h @file_transfer_system.user %>

<% if @file_transfer_system.transfer_type == FileTransferSystem::TYPE_SFTP && @file_transfer_system.authentication_type == FileTransferSystem::TYPE_PUBLIC_PRIVATE_KEY %>

<%= t_label('file_transfer_systems.private_key_path')%>

<%= h @file_transfer_system.private_key_path %>

<% end %>

<%= t_label('file_transfer_systems.port_number')%>

<%= h @file_transfer_system.port %>

<% if @file_transfer_system.transfer_type == FileTransferSystem::TYPE_SFTP %>

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

<%if @file_transfer_system.unknown_host_challenge %> <%= t('common.key_yes')%> <% else %> <%= t('common.key_no')%> <% end %>

<% end %> <% end %>
<%= standard_buttons(button_id) %>
<% end %>