%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@automate_schedule_variable.id}" form_id = "new_automate_schedule_variable" @title_section = t('automate_schedule_variables.page_title') @title_item = t('common.new_caption') if @automate_schedule_variable.static_value? @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['automate_schedule_variables']['static_automate_schedule_variables_settings'] else @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['automate_schedule_variables']['dynamic_automate_schedule_variables_settings'] end %> <% form_for @automate_schedule_variable, :html => { :id => form_id, :class => "edit_automate_schedule_variable", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <%= render( :partial => "edit_general", :layout => 'shared/edit_section', :locals => { :section_id => "automate-schedule-variable-general", :section_title => t('common.general_title'), :details_only => true}) %> <% if @automate_schedule_variable.static_value %> <%= render( :partial => "edit_static", :layout => 'shared/edit_section', :locals => { :section_id => "automate-schedule-variable-static-properties", :section_title => t('automate_schedule_variable.static_title'), :details_only => true}) %> <% elsif @automate_schedule_variable.dynamic_type %> <%= render( :partial => "edit_dynamic_date", :layout => 'shared/edit_section', :locals => { :section_id => "automate-schedule-variable-dynamic", :section_title => t('automate_schedule_variable.dynamic_title'), :details_only => true}) %> <% end %>