%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %>
stateId="sap_event_focused"
<% end %>
cls="full-page-grid"
title="<%= t("#{controller.controller_name}.page_title") %>"
helpUrl="<%=help_link(HELP_URL_CONFIG['product_info']['about_product'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="sap_event_monitorsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'disabled'}, {name: 'sap_system_name'}]"
deletePath="<%= sap_event_monitor_path(-1) %>"
editPath="<%= edit_sap_event_monitor_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%=t "name" %>', id: 'sap_event_monitorsGridName', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "description" %>', id: 'sap_event_monitorsGridDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'sap_system_name', header: '<%=t "common.sap_system_definition" %>', id: 'sap_event_monitorsGridSapSystemName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'disabled', header: '<%=t ".status" %>', id: 'sap_event_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.sap_event_monitor') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t ".edit_sap_event_monitor" %>',
actsOn: 'one',
actionUrl: '<%= edit_sap_event_monitor_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t ".copy_sap_event_monitor" %>',
actsOn: 'one',
actionUrl: '<%= copy_sap_event_monitor_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t ".delete_sap_event_monitor" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= sap_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%= t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_sap_event_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 => 'SapEventMonitor') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t("common.where_used") %>',
actsOn: 'one',
actionUrl: '<%= whereused_sap_event_monitor_path(-1) %>'
}, '-',{
iconCls: 'icon_event_history',
text: '<%=t ".event_history" %>',
actsOn: 'one',
actionUrl: '<%= sap_event_monitor_histories_path(:sap_event_monitor_id => -1) %>',
usePopup: false
}, '-',{
iconCls: 'icon_enable_sap_event_monitor',
text: '<%=t ".enable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= enable_sap_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".enable_sap_event_monitor_confirm" %>'
}, {
iconCls: 'icon_disable_sap_event_monitor',
text: '<%=t ".disable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= disable_sap_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".disable_sap_event_monitor_confirm" %>'
},'-',{
iconCls: 'icon_special_instance',
text: '<%=t "common.special_instances" %>',
actsOn: 'one',
actionUrl: '<%= sap_event_monitor_special_instances_path(:sap_event_monitor_id => -1) %>',
usePopup: false
},'-',{
actsOn: 'one',
actionUrl: '<%= send_event_sap_event_monitor_path(-1) %>',
ajaxRequest: true,
customAction: true,
method: 'POST',
iconCls: 'icon_send_event',
text: '<%=t ".send_event" %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t ".create_sap_event_monitor" %>',
actsOn: 'none',
actionUrl: '<%= new_sap_event_monitor_path %>'
}]}"
url="<%= sap_event_monitors_path(:format => 'json') %>" style="height:100%;">