<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id, dialog_id, checked = "button_switch_#{@job.id}", 'job_start_job', '' is_target_agent_group = @job.target_type == 'AgentGroup' window_height, cookie_state = is_target_agent_group ? [695, 'a'] : [615, 'b'] (window_height += 60) and (cookie_state += 'c') if (show_warning = (params[:sam_warning] && @job.scheduled?)) %> <% fields_for @job do |fields| %>
<%= hidden_field :job, :id %> <% if show_warning %>
<%= label 'lbl_1', 'header1', t('.sam_warning') %>
<% end %>
<%= label 'react_label', t('.perform_reactive')%>
<%= check_box 'perform_reactive', @job.hold, {:id => 'perform_reactive', :checked => checked}, checked_value = '1', unchecked_value = '0' %>
<%= label 'react_label', t('.clear_reactivity_status') %>
<%= check_box 'clear_reactivity', @job.hold, {:id => 'clear_reactivity', :checked => checked}, checked_value = '1', unchecked_value = '0' %>
<%= label 'ignore_monitors_label', t('.ignore_monitors') %>
<%= check_box 'ignore_monitors', @job.hold, {:id => 'ignore_monitors', :checked => checked}, checked_value = '1', unchecked_value = '0' %>
<%= label 'ignore_conditions_label', t('.ignore_conditions') %>
<%= check_box 'ignore_conditions', @job.hold, {:id => 'ignore_conditions', :checked => checked}, checked_value = '1', unchecked_value = '0' %>
<%= text_field 'default_priority', @job.default_priority, {:id => 'run_priority', :value => @job.default_priority, :class => 'x-form-field name-field'} %>
<% unless @authorized_to_view_commands %>
<%= t('jobs.unauthorized_to_commands', :type => @job.command_set.command_set_type == CommandSet::SHARED ? 'Shared' : 'IBM i Shared') %>
<%= t('jobs.start_at_first_command') %>
<% end %> <% if is_target_agent_group %>
<%= t('.run_on') %>

<% if (default_agent = AgentGroup::get_first_agent(@job.target.target)) %> <%= fields.hidden_field :default_agent_id, :disabled => true, :value => default_agent.id %> <%= fields.hidden_field :default_agent_name, :disabled => true, :value => default_agent.name %> <% end %>
<% end %>
<% end %>