<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @forecast_definition do |form| %>
<%= form.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= form.text_field :name, :disabled => @view_only, :maxLength => 20, :class => "x-form-field name-field" %>

<%= t('common.name_caption') %>

<%= form.label :description, t_label('common.description'), :class => "description-label item-label" %>
<%= form.text_area :description, :disabled => @view_only, :maxLength => 50, :class => "x-form-field description-field" %>

<%= t('common.description_caption') %>

<%= form.label :tag, t_label('common.tags'), :class => "x-form-item label" %>
<%= tags_form_helper(form, "forecast_definition[tag_list]", h(@forecast_definition.tag_list), {:view_only => @view_only}) %>
<%= t('.forecast_start_date') %>

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

<%= form.label :duration_option, t_label('.duration_label'), :class => "duration-label item-label" %> <%= form.hidden_field :duration_time, :disabled => true %>

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

<%= form.select :duration_option, [[t('common.hours_label'), 0],[ t('job.days_label'), 1]] %>

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

<% end %>