<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% chart_id = params[:id] dialog_id = "web_service_command_popup_id" width = 1210 height = 650 button_id = "button_close_1" form_id = "web_service_command" %>
<% form_for @web_service_command, :html => { :id => form_id, :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %>
<%= form.label :web_server_id, t_label('web_service_commands.web_server'), :class => "name-label item-label" %>

<%= t('web_service_commands.web_server_caption') %>

<%= form.label :description, t_label('common.description'), :class => "name-label item-label" %>
<%= text_field :ws_command, :description, {:maxLength => 256, :class => "x-form-field name-field"} %>

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

<%= form.label :variable, t_label('web_service_commands.web_service_variables'), :class => "x-form-item label" %>
<%= variables_form_helper(form, "web_service_command[variable_list]", h(@web_service_command.variables_list), {:id => @web_service_command.id, :view_only => false}) %>
<%= form.label :base_url, t_label('web_server_definitions.edit_definition_details.base_url'), :class => "name-label item-label" %>
<%= form.label :app_url, t_label('web_service_commands.app_url'), :class => "name-label item-label" %>
<%= form.text_field :app_url, :maxLength => 256, :class => "x-form-field name-field" %>

<%= t('web_service_commands.app_url_caption') %>

<%= form.label :request_method, t_label('web_service_commands.request_method'), :class => "name-label item-label" %>

<%= t('web_service_commands.message_body_override')%>
<%= text_area :web_service_command, :string_body, :maxLength => 6000, :class => "x-form-field description-field", :style=> "width: 484px; overflow-y: scroll; height: 65px" %>
<%= form.label :file_body, t_label('web_service_commands.upload_file'), :class => "name-label item-label" %>
<%= form.text_field :file_body, :maxLength => 256, :class => "x-form-field name-field", :style => "width : 359px"%>

<%= t('web_service_commands.file_body_caption') %>

<%= t('web_service_commands.response_handling')%>
<%= form.label :log_to_console_heading, t_label('web_service_commands.log_to_console'), :class => "name-label item-label", :style => "margin-left: -20px; width: 100%" %>
<%= form.text_field :output_file_name, :maxLength => 256, :class => "x-form-field name-field", :style => "width : 359px" %>

<%= t('web_service_commands.output_file_caption') %>

<%= form.text_field :output_headers_file_name, :maxLength => 256, :class => "x-form-field name-field", :style => "width : 359px" %>

<%= t('web_service_commands.output_file_caption') %>

<% end %>