%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
<%
button_id = "switch_button_close_#{@command_set.id}"
form_id = "switch_command_set_#{@command_set.id}"
dialog_id = "dialog_switch_command_set_#{@command_set.id}"
url = switch_update_job_path
%>
<% tagged_popup_remote_form_for(form_id, dialog_id, @command_set, url, :method => :post) do |form| %>
<%= javascript_tag "secret_token = '#{form_authenticity_token}'" %>
<%= form.text_field :name,
:fieldLabel => "#{t'common.from'}", :anchor => '90%', :disabled=>true %>
<%= form.collection_select 'id', @command_sets, :id, :name, {},
{:dojoType => "helpsys.ext.ComboBox",
:id => "commandSetNewId",
:name => "to_command_set",
:fieldlabel => "#{t'common.to_upper_case_t'}",
:typeAhead => true,
:forceSelection => false,
:triggerAction => 'all',
:anchor => '90%'} %>
<%= error_messages_for 'command_set' %>
<% end %>