<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% fields_for @forecast_schedule do |fields| %>
<%= fields.label :calendar, t_label('common.calendar'), :class => "x-form-item label calendar-label" %>
<%= fields.hidden_field :calendar_id %>

<%= t('forecast_schedules.forecast_schedule.calendar_caption') %>

<%= fields.label :schedule_type, t_label('forecast_schedules.forecast_schedule.schedule_type'), :class => "x-form-item label schedule-type-label" %>
<%= fields.select :schedule_type, [[ t('.unscheduled_forecast_schedule'), 'UJ'], [t('.day_of_week'), 'DW'], [ t('.date_list'),'DL'], [ t('.day_of_period'),'DP']], {:disabled=>@view_only}%>

<%= t('forecast_schedules.forecast_schedule.schedule_type_caption') %>

<%= fields.label :day_type, t_label('forecast_schedules.forecast_schedule.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('forecast_schedules.forecast_schedule.day_type_caption') %>

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