<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_switch_#{@job.id}" form_id = "job_hold_confirm" dialog_id = "job_hold_confirm" job_id = @job.id url = hold_confirm_job_suite_path @job_is_held = @job.hold redirect_from_job_flow_graph = params[:from_job_flow] ? true : false checked = @job_is_held == 1 ? 'checked' : '' %> <% fields_for @job do |fields| %>
<% if @job.hold == 2 %> <%= label "lbl_1", "header1", t(".hold_until_message") %> <% elsif @job.hold == 1 %> <% if @job.hold_times - @job.held_count != 1 %> <%= label "lbl_1", "header1", t(".hold_until_count_message_plural", :count => @job.hold_times - @job.held_count) %> <% else %> <%= label "lbl_1", "header1", t(".hold_until_count_message", :count => @job.hold_times - @job.held_count) %> <% end %> <% elsif @job.hold == 3 %> <%= label "lbl_1", "header1", t(".hold_until_date_message", :hold_until => format_timestamp(@job.hold_until, true), :time_zone_type => @job.timezone_type_text) %> <% else %> <%= label "lbl_1", "header1", t(".not_held_message") %> <% end %>
<%= label_tag "hold_selection", t_label('.hold_option_label'), :style => 'width:150px;' %>
<%= select "job", "hold", @job.get_hold_option_array, {}, {:disabled=> @view_only} %>

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

<%= label_tag "hold_num_label", t_label('.number_times_to_hold'), :style => 'width:150px;' %>
/>

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

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

<%= t_label("jobs.job.timezone_option") %> <%= h @job.timezone_type_text %>

<%= label_tag "hold_date", t_label('.hold_date_label'), :class => "label", :style => 'width:133px !important;' %> <%= fields.hidden_field(:hold_until, :value => @job.hold_until_local.nil? ? "" : @job.hold_until_local.iso8601, :disabled => true) %>

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

<%= label_tag "hold_time", t_label('.hold_time_label'), :class => "label", :style => 'width:133px !important;' %>

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

<% end %>