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

<%= t('calendars.whereused.calendar_caption') %>

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