%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2015 %>
#{@title}" %>"
helpUrl="<%=help_link(HELP_URL_CONFIG['job_queue_schedule_entries']['home'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>',
job_queue_id: '<%= params[:job_queue_id] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="job_queue_schedule_entryGridDescription"
dataColumns="[{name: 'id'}, {name: 'status'}, {name: 'name'}, {name: 'description'}, {name: 'days'}, {name: 'time'}, {name: 'max_active_jobs'}, {name: 'priority_limit_max'}, {name: 'max_active_per_agent'}, {name: 'hold_on_failure'}]"
deletePath="<%= job_queue_job_queue_schedule_entry_path(params[:job_queue_id], -1) %>"
deleteConfirmation="<%=t ".delete_confirmation" %>"
editPath="<%= edit_job_queue_job_queue_schedule_entry_path(params[:job_queue_id],-1)%>"
editInPopup="false"
itemType='<%= t('common.job_queue_schedule_entry') %>'
gridColumns="[
{dataIndex: 'status', header: '<%= t('common.status') %>', id: 'job_queue_schedule_entryGridStstus', locked: false, sortable: true, width: 150, filter: true, filterType: 'boolean', yesText: <%= "'#{t('common.enabled')}'" %>, noText: <%= "'#{t('common.disabled')}'" %> },
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'job_queue_schedule_entryGridName', locked: true, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'job_queue_schedule_entryGridDescription', locked: true, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'days', header: '<%= t('common.days') %>', id: 'job_queue_schedule_entryGridDays', locked: false, sortable: false, width: 100, filter: false, filterType: 'list', filterList: <%= JobQueueScheduleEntry.JOB_QUEUE_SCHEDULE_WEEK_LIST %>},
{dataIndex: 'time', header: '<%= t('common.time') %>', id: 'job_queue_schedule_entryGridTime', locked: true, sortable: true, width: 150, filter: false, filterType: 'numeric'},
{dataIndex: 'max_active_jobs', header: '<%= t('field_names.max_active_jobs') %>', id: 'job_queue_schedule_entryGridMaxActiveJobs', locked: true, sortable: false, width: 150, filter: false, filterType: 'numeric'},
{dataIndex: 'priority_limit_max', header: '<%= t('field_names.priority_limit_max') %>', id: 'job_queue_schedule_entryGridPriorityLimitMax', locked: true, sortable: false, width: 150, filter: false, filterType: 'numeric'},
{dataIndex: 'max_active_per_agent', header: '<%= t('field_names.max_active_per_agent') %>', id: 'job_queue_schedule_entryGridMaxActivePerAgent', locked: true, sortable: false, width: 150, filter: false, filterType: 'string'},
{dataIndex: 'hold_on_failure', header: '<%= t('field_names.hold_on_failure') %>', id: 'job_queue_schedule_entryGridHoldOnFailure', locked: true, sortable: true, width: 150, filter: true, filterType: 'boolean', yesText: <%= "'#{t('common.key_yes')}'" %>, noText: <%= "'#{t('common.key_no')}'" %> }
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_job_queue_schedule_entry') %>',
actsOn: 'one',
actionUrl: '<%= edit_job_queue_job_queue_schedule_entry_path(params[:job_queue_id],-1) %>',
keepMask: true
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_job_queue_schedule_entry') %>',
actsOn: 'one',
actionUrl: '<%= copy_job_queue_job_queue_schedule_entry_path(params[:job_queue_id], -1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_job_queue_schedule_entry') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= job_queue_job_queue_schedule_entry_path(params[:job_queue_id],-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
},'-',{
iconCls: 'icon_audit',
text: '<%=t "common.show_audit_changes" %>',
actsOn: 'one',
actionUrl: '<%= audits_path(:auditable_id => -1, :auditable_type => 'JobQueueScheduleEntry') %>'
}, '-', {
iconCls: 'icon_enable_agent_event_monitor',
text: '<%= t('common.enable') %>',
actsOn: 'one',
actionUrl: '<%= enabled_job_queue_job_queue_schedule_entry_path(params[:job_queue_id], -1)%>',
confirmText: '<%=t ".enable_confirmation" %>'
}, {
iconCls: 'icon_disable_agent_event_monitor',
text: '<%= t('common.disable') %>',
actsOn: 'one',
actionUrl: '<%= disabled_job_queue_job_queue_schedule_entry_path(params[:job_queue_id], -1)%>',
confirmText: '<%=t ".disable_confirmation" %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_job_queue_schedule_entry') %>',
actsOn: 'none',
actionUrl: '<%= new_job_queue_job_queue_schedule_entry_path(params[:job_queue_id]) %>'
}]}"
url="<%= job_queue_job_queue_schedule_entries_path(:format => 'json') %>" style="height:100%;">