%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_close_#{@calendar.id}" form_id = "new_calendar" @title_section = @calendar.fiscal? ? t('calendars.calendar.fiscal_title') : t('calendars.calendar.title') @title_item = t('common.new_caption') if @calendar.fiscal? @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['calendar_objects']['fiscal_calendar_settings'] else @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['calendar_objects']['standard_calendar_settings'] end %> <% form_for @calendar, :html => {:id => form_id,:class => "edit_calendar",: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 => "settings-general", :section_title => t('common.general_title'), :details_only => true}) %> <%= render( :partial => "edit_workdays", :layout => 'shared/edit_section', :locals => { :section_id => "settings-workdays", :section_title => t('calendars.work_days_of_the_week'), :details_only => true}) %> <%= render( :partial => 'edit_periods', :layout => 'shared/edit_section', :locals => { :section_id => "calendar-periods", :section_title => t('calendars.calendar_periods'), :details_only => true}) if @fiscal %> <%# :details_only => true}) if params[:fiscal_cal]%> <%= render( :partial => "edit_nonworkdays", :layout => 'shared/edit_section', :locals => { :section_id => "settings-nonworkdays", :section_title => t('calendars.nonworkdays'), :details_only => true}) %>
<% end %>