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

<%= t('agent_environments.whereused.agent_environment_caption') %>

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