%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2015 %> <% button_id = "button_close_#{@job_queue.id}" form_id = "job_queue" @title = t('job_queues.job_queue.dialog_title') @title_section = t('job_queues.job_queue.dialog_title') @title_item = t('common.new_caption') @help_link_anchor = HELP_URL_CONFIG['job_queues']['settings'] %> <% form_for @job_queue, :html => { :id => form_id, :class => "edit_agent_environment", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% if @copy %> <%= form.hidden_field :on_hold %> <% @source_job_queue.job_queue_schedule_entries.each_with_index do |jq_schedule, idx| %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][name]", jq_schedule.name %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][description]", jq_schedule.description %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][enabled]", jq_schedule.enabled %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][start_time]", jq_schedule.start_time %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_monday]", jq_schedule.valid_monday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_tuesday]", jq_schedule.valid_tuesday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_wednesday]", jq_schedule.valid_wednesday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_thursday]", jq_schedule.valid_thursday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_friday]", jq_schedule.valid_friday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_saturday]", jq_schedule.valid_saturday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][valid_sunday]", jq_schedule.valid_sunday %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][limit_active_jobs]", jq_schedule.limit_active_jobs %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][max_active_jobs]", jq_schedule.max_active_jobs %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][limiter_enabled]", jq_schedule.limiter_enabled %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][limiter_minimum_priority]", jq_schedule.limiter_minimum_priority %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][limiter_max_active]", jq_schedule.limiter_max_active %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][limit_active_per_agent]", jq_schedule.limit_active_per_agent %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][max_active_per_agent]", jq_schedule.max_active_per_agent %> <%= hidden_field_tag "job_queue[job_queue_schedule_entries_attributes][#{idx}][hold_on_failure]", jq_schedule.hold_on_failure %> <% end %> <% end %> <%= render( :partial => "edit_general", :layout => 'shared/edit_section', :locals => { :section_id => "job-queue-general", :section_title => t('common.general_title'), :details_only => true}) %> <%= render( :partial => "edit_settings", :layout => 'shared/edit_section', :locals => { :section_id => "job-queue-settings", :section_title => t('common.settings_title'), :details_only => true}) %>