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

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

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