%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['agent_groups']['manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="agent_groupsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'group_type'}, {name: 'last_run'}]"
deletePath="<%= agent_group_path(-1) %>"
editPath="<%= edit_agent_group_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%=t "common.name" %>', id: 'agent_groupsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "common.description" %>', id: 'agent_groupsGridDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'group_type', header: '<%=t ".group_type" %>', id: 'agent_groupsGridType', locked: false, sortable: false, width: 100, filter: true, filterType: 'list', filterList: <%= "[
[0, '#{t('agent_groups.group_type.all_agents_group')}'],
[1, '#{t('agent_groups.group_type.utilization_balanced_group')}'],
[2, '#{t('agent_groups.group_type.preferred_agent_group')}']
]" %>}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
itemType='<%= t('common.agent_group') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_agent_group') %>',
actsOn: 'one',
actionUrl: '<%= edit_agent_group_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_agent_group') %>',
actsOn: 'one',
actionUrl: '<%= copy_agent_group_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_agent_group') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= agent_group_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_agent_group" %>',
actsOn: 'many',
method: 'EXPORT',
customAction: true,
hideLoadWindow: true,
handler: function(){exportController.openExportPopup.call(exportController)}
}, {
iconCls: 'icon_audit',
text: '<%=t "common.show_audit_changes" %>',
actsOn: 'one',
actionUrl: '<%= audits_path(:auditable_id => -1, :auditable_type => 'AgentGroup') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t("common.where_used") %>',
actsOn: 'one',
actionUrl: '<%= whereused_agent_group_path(-1) %>'
}, '-', {
iconCls: 'icon_job_history',
text: '<%=t "common.history" %>',
menu: {
items: [{
iconCls: '',
text: '<%=t "application.agent_event_histories" %>',
actsOn: 'one',
actionUrl: '<%= agent_event_histories_path(:target_id => -1, :target_type => AgentGroup.to_s) %>',
usePopup: false
},{
iconCls: '',
text: '<%=t "agents.index.job_history_all_jobs" %>',
actsOn: 'one',
actionUrl: '<%= job_histories_path(:agent_group_id => -1) %>',
usePopup: false
},{
iconCls: '',
text: '<%=t "agents.index.job_history_active_jobs" %>',
actsOn: 'one',
actionUrl: '<%= job_histories_path(:agent_group_id => -1, :job_status => "active") %>',
usePopup: false
}]
}
}, '-', {
iconCls: 'icon_job',
text: '<%=t ".display_jobs" %>',
actsOn: 'one',
actionUrl: '<%= jobs_path(:agent_group_id => -1) %>'
}, {
iconCls: 'icon_display_agent_event_monitors',
text: '<%=t ".display_agent_event_monitors" %>',
actsOn: 'one',
actionUrl: '<%= agent_event_monitors_path(:agent_group_id=>-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('agent_groups.group_type.all_agents_group') %>',
actsOn: 'none',
actionUrl: '<%= new_agent_group_path(:type => 0) %>'
},{
iconCls: 'icon_create',
text: '<%= t('agent_groups.group_type.utilization_balanced_group') %>',
actsOn: 'none',
actionUrl: '<%= new_agent_group_path(:type => 1) %>'
},{
iconCls: 'icon_create',
text: '<%= t('agent_groups.group_type.preferred_agent_group') %>',
actsOn: 'none',
actionUrl: '<%= new_agent_group_path(:type => 2) %>'
}]}"
url="<%= agent_groups_path(:format => 'json') %>" style="height:100%;">