<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% disabled_text = 'disabled="true"' if @view_only %> <% fields_for object_instance do |fields| %>
<%= fields.label :timed_interval_minutes, t_label('.timed_interval_minutes_label'), :class => "x-form-item label run-every-label" %>

<%= t("#{object_key.to_s}s.edit_interval.timed_interval_minutes_caption") %>

<%= fields.hidden_field :timed_interval_minutes, :name => "", :disabled => true %>
<%= fields.select :timed_interval_display_preference,[[t('common.minutes'), 'M'],[ t('common.hours'),'H']] %>

<%= t('.timed_interval_display_preference_caption') %>

<%= fields.label :run_non_working_days, t_label('.run_non_working_days_label'), :class => "x-form-item label" %>
<%= fields.check_box :run_non_working_days, :disabled => @view_only %>

<%= t('.run_non_working_days_caption') %>

<%= t('.start_job_set') %>
<% if object_instance.new_record? || object_instance.schedule_type != Job::TIMED_INTERVAL_TYPE %> <% else %> <% end %>
<%= check_box_tag "start_job_on_save", "1", true %>

<% if object_instance.new_record? || object_instance.schedule_type != Job::TIMED_INTERVAL_TYPE %> <%= t('.start_job_on_save_caption')%> <% else %> <%= t('.start_job_keep_existing_caption')%> <% end %>

<%= fields.label :timed_interval_base_datetime_local, t_label('.timed_interval_base_date_label'), :class => "x-form-item label" %>
<%= fields.hidden_field(:timed_interval_base_datetime_local, :value => object_instance.timed_interval_base_datetime_local.strftime('%Y-%m-%dT%H:%M:%S'), :disabled => true) %>

<% translation_key = "#{object_key.to_s}s.edit_interval.timed_interval_base_date_caption" %> <%= t(translation_key) %>

<%= fields.label :timed_interval_base_datetime_local, t_label('.timed_interval_base_time_label'), :class => "x-form-item label" %>

<% translation_key = "#{object_key.to_s}s.edit_interval.timed_interval_base_time_caption" %> <%= t(translation_key) %>

/>
<% end %>