<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% fields_for @job_suite do |fields| %>
<%= fields.label :schedule_type, t_label('jobs.job.schedule_type'), :class => "x-form-item label schedule-type-label" %>
<%= fields.select :schedule_type, [[ t('.unscheduled_job_suite'), 'UJ'], [t('.day_of_week'), 'DW'], [ t('.date_list'),'DL'], [ t('.day_of_period'),'DP'],[ t('.timed_interval'), 'TI'], [ t('.daily_interval'), 'DC'], [ t('.day_of_week_range'),'RDW'],[ t('.date_list_range'),'RDL'],[ t('.day_of_period_range'),'RDP'], [ t('.cron_expression'), 'CE']], {:disabled=>@view_only}%>

<%= t('job_suites.job_suite.schedule_type_caption') %>

<%= fields.label :day_type, t_label('jobs.job.day_type'), :class => "x-form-item label day-type-label" %>
<%= fields.select :day_type,[[t('.all_days'), 'A'],[ t('.working_days'),'W'],[ t('.non_working_days'),'N']] %>

<%= t('job_suites.job_suite.day_type_caption') %>

<%= render(:partial => 'schedule/edit_day_of_week', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_day_of_week_range', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_date_list', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_date_list_range', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_day_of_period_range', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_interval', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_daily_interval', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_sap_run_intercepted_job', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>
<%= render(:partial => 'schedule/edit_cron_expression', :locals => { :object_key => :job_suite, :object_instance => @job_suite}) %>

<%= fields.label :skip_on_not_completed, t_label('job_suites.edit_interval.skip_on_not_completed_label'), :class => "x-form-item label" %>
<%= fields.check_box :skip_on_not_completed, :disabled => @view_only %>

<%= t('job_suites.edit_interval.skip_on_not_completed_caption') %>

<%= fields.label :generate_skipped_history, t_label('job_suites.job_history.generate_history_skipped_label'), :class => "x-form-item label" %>
<%= fields.check_box :generate_skipped_history, :disabled => @view_only %>

<%= t('job_suites.job_history.generate_history_skipped_caption') %>

<%= fields.label :hold_on_failure, t_label('job_suites.edit_interval.hold_on_failure_label'), :class => "x-form-item label" %>
<%= fields.check_box :hold_on_failure, :disabled => @view_only %>

<%= t('job_suites.edit_interval.hold_on_failure_caption') %>

<% end %>