<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 20015 %> <% button_id = "button_close_#{@job_queue.id}" form_id = "edit_job_queue_#{@job_queue.id}" @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @job_queue.name @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| %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "job_queue_general",:section_title => t('common.general_title')}) do %>

<%= t_label('common.name') %>

<%= h @job_queue.name %>

<%= t_label('common.description') %>

<%= h @job_queue.description %>

<%= t_label('common.tags') %>

<%= h @job_queue.tag_list %>

<%= t_label('common.agent') %>

<% if @job_queue.job_queue_type == 1 %> <%= h @job_queue.agent.name unless @job_queue.agent.nil? %> <% else %> <%= t('common.cross_agent') %> <% end %>

<% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "job_queue_settings",:section_title => t('common.settings_title')}) do %>

<%= t_label('field_names.hold_on_failure') %>

<%= h @job_queue.hold_on_failure ? t('common.key_yes') : t('common.key_no') %>

<%= t_label('common.limit_number_of_active_jobs') %>

<%= @job_queue.limit_active_jobs ? @job_queue.max_active_jobs : t('common.nomax_label') %>

<%= t_label('common.limit_jobs_by_priority', :name => "") %>

<%= @job_queue.limiter_enabled ? "#{h @job_queue.limiter_minimum_priority} (#{h @job_queue.limiter_max_active}) " : "" %>

<% if @job_queue.job_queue_type == JobQueue::QUEUE_TYPE_CROSS_AGENT %>

<%= t_label('common.limit_number_of_active_jobs_per_agent') %>

<%= @job_queue.limit_active_per_agent ? h(@job_queue.max_active_per_agent) : "" %>

<% end %> <% end %>
<%= standard_buttons(button_id) %>
<% end %>