<% # (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% disabled_text = 'disabled="true"' if @view_only %> <% fields_for object_instance do |object_fields| %> <% if object_instance.cron_expression.nil? %> <% object_instance.build_cron_expression() %> <% end %> <% object_fields.fields_for :cron_expression do |fields| %> <% if object_instance.cron_expression %> <%= fields.hidden_field :id %> <%= fields.hidden_field :minute %> <%= fields.hidden_field :hour %> <%= fields.hidden_field :day %> <%= fields.hidden_field :month %> <%= fields.hidden_field :weekday %> <%= fields.hidden_field :year %> <% end %>
<% help_link = link_to("", help_link(HELP_URL_CONFIG['jobs']['cron_expressions']), :style=> "padding-left:3px;display:inline-block;", :class => "help-link", :popup => true ) %> <%= fields.label :fred, t_label('.cron_expression') + help_link, :class => "x-form-item label cron-expression-label" %>
<%= fields.label :minute, t_label('.minute'), :class => "x-form-item label minute-label" %>
<%= fields.label :hour, t_label('.hour'), :class => "x-form-item label hour-label" %>
<%= fields.label :day, t_label('.day'), :class => "x-form-item label day-label" %>
<%= fields.label :month, t_label('.month'), :class => "x-form-item label month-label" %>
<%= fields.label :weekday, t_label('.weekday'), :class => "x-form-item label weekday-label" %>
<%= fields.label :year, t_label('.year'), :class => "x-form-item label year-label" %>
  <% end %> <% end %>