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

<%= t('date_objects.whereused.date_object_caption') %>

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