<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @special_instance do |fields| %>
<%= fields.label :instance_type, t_label('special_instance.instance_type'), :class => "x-form-item label schedule-type-label" %>
<%= fields.hidden_field :instance_type, :id => "special_instance_instance_type_hidden" %> <%= fields.select :instance_type, [[t('jobs.edit_schedule.day_of_week'), 0],[ t('jobs.edit_schedule.date_list'), 1], [t('jobs.edit_schedule.day_of_period'), 2]], {:disabled=>@view_only}%>

<%= t('special_instance.instance_type_caption') %>

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

<%= t('jobs.job.day_type_caption') %>

<%= render(:partial => 'edit_day_of_week') %>
<%= render(:partial => 'edit_date_list') %>
<% end %>