<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @file_transfer_system do |form| %>
<%= form.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= form.text_field :name, :disabled => @view_only, :maxLength => 20, :class => "x-form-field name-field" %>

<%= t('common.name_caption') %>

<%= form.label :description, t_label('common.description'), :class => "description-label item-label" %>
<%= form.text_area :description, :disabled => @view_only, :maxLength => 50, :class => "x-form-field description-field" %>

<%= t('common.description_caption') %>

<%= form.label :tag, t_label('common.tags'), :class => "x-form-item label" %>
<%= tags_form_helper(form, "file_transfer_system[tag_list]", h(@file_transfer_system.tag_list), {:view_only => @view_only}) %>

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

<%= radio_button_tag("file_transfer_system[transfer_type]", FileTransferSystem::TYPE_FTP, @file_transfer_system.transfer_type == FileTransferSystem::TYPE_FTP, :disabled => @view_only) %> <%=t "file_transfer_systems.ftp" %>
<%= radio_button_tag("file_transfer_system[transfer_type]", FileTransferSystem::TYPE_FTPS, @file_transfer_system.transfer_type == FileTransferSystem::TYPE_FTPS, :disabled => @view_only) %> <%=t "file_transfer_systems.ftps" %>
<%= radio_button_tag("file_transfer_system[transfer_type]", FileTransferSystem::TYPE_SFTP, @file_transfer_system.transfer_type == FileTransferSystem::TYPE_SFTP, :disabled => @view_only) %> <%=t "file_transfer_systems.sftp" %>
<%= form.label :system_name, t_label('file_transfer_systems.system_name'), :class => "name-label item-label" %>
<%= form.text_field :system_name, :disabled => @view_only, :class => "x-form-field name-field" %>

<%= t('file_transfer_systems.system_name_caption') %>

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

<%= radio_button_tag("file_transfer_system[authentication_type]", FileTransferSystem::TYPE_USER_PASS, @file_transfer_system.authentication_type == FileTransferSystem::TYPE_USER_PASS, :disabled => @view_only) %> <%=t "file_transfer_systems.user_pass_key" %>
<%= radio_button_tag("file_transfer_system[authentication_type]", FileTransferSystem::TYPE_PUBLIC_PRIVATE_KEY, @file_transfer_system.authentication_type == FileTransferSystem::TYPE_PUBLIC_PRIVATE_KEY, :disabled => @view_only) %> <%=t "file_transfer_systems.public_private_key" %>
<%= form.label :use_passphrase, t_label('file_transfer_systems.use_passphrase') %>
<%= form.check_box :use_passphrase, :disabled => @view_only %>

<%= t('file_transfer_systems.use_passphrase_caption') %>

<%= form.label :user, t_label('common.username'), :class => "name-label item-label" %>
<%= form.text_field :user, :disabled => @view_only, :maxLength => 128, :class => "x-form-field name-field" %>

<%= t('file_transfer_systems.user_caption') %>

<%= form.label :password, t_label('common.password'), :class => "name-label item-label" %>
<%= password_field_tag 'file_transfer_system[password]', '', {:size => 80, :class => "x-form-field password-field", :maxLength => 128, :disabled => @view_only, :autoComplete => "off"} %>

<%= t('file_transfer_systems.password_caption') %>

<%= form.label :password, t_label('common.confirm_password'), :class => "name-label item-label" %>
<%= password_field_tag 'file_transfer_system[password_confirmation]', '', {:size => 80, :class => "x-form-field password-field", :maxLength => 128, :disabled => @view_only, :autoComplete => "off"} %>

<%= t('file_transfer_systems.confirm_password_caption') %>

<%= form.label :private_key_path, t_label('file_transfer_systems.private_key_path'), :class => "name-label item-label" %>
<%= form.text_field :private_key_path, :disabled => @view_only, :maxLength => 256, :class => "x-form-field name-field" %>

<%= t('file_transfer_systems.private_key_path_caption') %>

<%= form.label :port, t_label('file_transfer_systems.port_number'), :class => "name-label item-label" %>
<%= form.text_field :port, :disabled => @view_only, :maxLength => 20, :class => "x-form-field name-field", :style => "width:321px" %>

<%= t('file_transfer_systems.port_number_caption') %>

<%= form.label :unknown_host_challenge, t_label('file_transfer_systems.unknown_host_challenge') %>
<%= form.check_box :unknown_host_challenge, :disabled => @view_only %>

<%= t('file_transfer_systems.unknown_host_challenge_caption') %>

<%= form.label :use_implicit_ftps, t_label('file_transfer_systems.use_implicit_ftps') %>
<%= form.check_box :use_implicit_ftps, :disabled => @view_only %>

<%= t('file_transfer_systems.use_implicit_ftps_caption') %>

<% end %>