<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% chart_id = params[:id] dialog_id = "file_transfer_popup_id" width = 550 height = 440 button_id = "button_close_1" form_id = "file_transfer_command" %>
<% form_for @file_transfer, :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| %>
<%= form.label :file_transfer_system_id, t_label('file_transfers.file_transfer_system'), :class => "name-label item-label" %>

<%= t('file_transfers.file_transfer_system_caption') %>

<%= t_label('file_transfers.direction') %>

<%= radio_button_tag("file_transfer_direction", FileTransfer::TRANSFER_DIRECTION_PULL, @file_transfer.direction == FileTransfer::TRANSFER_DIRECTION_PULL, :disabled => @view_only) %> <%=t "file_transfers.direction_pull" %>
<%= radio_button_tag("file_transfer_direction", FileTransfer::TRANSFER_DIRECTION_PUSH, @file_transfer.direction == FileTransfer::TRANSFER_DIRECTION_PUSH, :disabled => @view_only) %> <%=t "file_transfers.direction_push" %>
<%= form.label :remote_file_name, t_label('file_transfers.remote_file_name'), :class => "name-label item-label" %>
<%= form.text_field :remote_file_name, :disabled => @view_only, :maxLength => 4000, :class => "x-form-field name-field" %>

<%= t('file_transfers.remote_file_name_caption') %>

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

<%= t('file_transfers.agent_file_name_caption') %>

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

<%= t('file_transfers.replace_existing_target_file_caption') %>

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

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

<%= radio_button_tag("file_transfer_transfer_type", FileTransfer::TRANSFER_TYPE_BINARY, @file_transfer.transfer_type == FileTransfer::TRANSFER_TYPE_BINARY, :disabled => @view_only) %> <%=t "file_transfers.transfer_type_binary" %>
<%= radio_button_tag("file_transfer_transfer_type", FileTransfer::TRANSFER_TYPE_TEXT, @file_transfer.transfer_type == FileTransfer::TRANSFER_TYPE_TEXT, :disabled => @view_only) %> <%=t "file_transfers.transfer_type_text" %>
<%= form.label :site_command, t_label('file_transfers.site_command'), :class => "name-label item-label" %>
<%= form.text_field :site_command, :disabled => @view_only, :maxLength => 4000, :class => "x-form-field name-field" %>

<%= t('file_transfers.site_command_caption') %>

<% end %>