<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% form_id = "where_used_agent_group_#{@agent_group.id}" %> <% fields_for @agent_group do |fields| %>
<%= fields.label :agent, t_label(".switch_label"), :class => "x-form-item label" %>

<%= t('.agent_caption') %>

<%= button_to_function("Switch", "try {helpsys.CntMgr.getController('#{form_id}').switchAgent();} catch(e) {console.log(e);};return false;") %>
<% end %>