<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_close_#{@date_object.id}" form_id = "edit_date_object_#{@date_object.id}" @title_section = t "date_objects.date_object.dialog_title" @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @date_object.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['date_lists']['date_list_settings'] %> <% form_for @date_object, :html => {:id => form_id,:class => "edit_date_object",:autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "settings-general", :section_title => t('common.general_title')}) do %>

<%= t_label('common.name') %>

<%= h @date_object.name %>

<%= t_label('common.description')%>

<%= h @date_object.description %>

<%= t_label('common.tags')%>

<%= h @date_object.tag_list %>

<%= t_label "date_objects.notify_expiration" %>

<%= h @date_object.notify_before_expiration? ? t('common.key_yes') : t('common.key_no') %>

<% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "settings-run-dates", :section_title => t("date_objects.run_dates")}) do %>

<%= t "date_objects.no_run_dates" if @sorted_array.length == 0 %> <%= t("date_objects.one_run_date", :date => @sorted_array.first.run_date.to_s) if @sorted_array.length == 1 %> <%= t("date_objects.range_run_dates", :length => @sorted_array.length.to_s, :start_date => @sorted_array.first.run_date.to_s, :end_date => @sorted_array.last.run_date.to_s) if @sorted_array.length > 1 %>

<% end %>
<%= standard_buttons(button_id) %>
<% end %>