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