%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
stateId="snmp_trap_focused"
<% end %>
cls="full-page-grid"
title="<%= t("#{controller.controller_name}.page_title") %>"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['snmp_trap_monitors']['snmp_trap_monitor_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="snmp_trap_monitorsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'disabled'}]"
deletePath="<%= snmp_trap_monitor_path(-1) %>"
editPath="<%= edit_snmp_trap_monitor_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%=t "name" %>', id: 'snmp_trap_monitorsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "description" %>', id: 'snmp_trap_monitorsGridDescription', locked: false, sortable: true, width: 50, filter: true, filterType: 'string'},
{dataIndex: 'disabled', header: '<%=t ".status" %>', id: 'snmp_trap_monitorsGridDisabled', locked: false, sortable: true, width: 100, filter: true, filterType: 'list', filterList: <%= "[['TRUE', '#{t('agent_event_monitor.status.disabled')}'],['FALSE', '#{t('agent_event_monitor.status.enabled')}']]" %>}]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
itemType='<%= t('common.snmp_trap_monitor') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t ".edit_snmp_trap_monitor" %>',
actsOn: 'one',
actionUrl: '<%= edit_snmp_trap_monitor_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t ".copy_snmp_trap_monitor" %>',
actsOn: 'one',
actionUrl: '<%= copy_snmp_trap_monitor_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t ".delete_snmp_trap_monitor" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= snmp_trap_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%= t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_snmp_trap_monitor" %>',
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 => 'SnmpTrapMonitor') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t("common.where_used") %>',
actsOn: 'one',
actionUrl: '<%= whereused_snmp_trap_monitor_path(-1) %>'
}, '-',{
iconCls: 'icon_event_history',
text: '<%=t ".event_history" %>',
actsOn: 'one',
actionUrl: '<%= snmp_trap_events_path(:trap_monitor_id => -1) %>',
usePopup: false
}, '-',{
iconCls: 'icon_enable_snmp_trap_monitor',
text: '<%=t ".enable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= enable_snmp_trap_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".enable_snmp_trap_monitor_confirm" %>'
}, {
iconCls: 'icon_disable_snmp_trap_monitor',
text: '<%=t ".disable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= disable_snmp_trap_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".disable_snmp_trap_monitor_confirm" %>'
},'-',{
iconCls: 'icon_special_instance',
text: '<%=t "common.special_instances" %>',
actsOn: 'one',
actionUrl: '<%= snmp_trap_monitor_special_instances_path(:snmp_trap_monitor_id => -1) %>',
usePopup: false
},'-',{
actsOn: 'one',
actionUrl: '<%= confirm_send_event_snmp_trap_monitor_path(-1) %>',
iconCls: 'icon_send_event',
text: '<%=t ".send_event" %>',
usePopup: true
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t ".create_snmp_trap_monitor" %>',
actsOn: 'none',
actionUrl: '<%= new_snmp_trap_monitor_path %>'
}]}"
url="<%= snmp_trap_monitors_path(:format => 'json') %>" style="height:100%;">