%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="agent_event_monitors_focused"
baseParameters="{
results: 300,
target_type: 'Agent',
target_id: '<%= params[:agent_id] %>',
tag: '<%= params[:tag] %>'
}"
<% elsif (params[:agent_group_id]) %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="agent_event_monitors_focused"
baseParameters="{
results: 300,
target_type: 'AgentGroup',
target_id: '<%= params[:agent_group_id] %>',
tag: '<%= params[:tag] %>'
}"
<% else %>
title="<%= t("#{controller.controller_name}.page_title") %>"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
<% end %>
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="agent_event_monitorsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'agent'}, {name: 'disabled'}, {name: 'event_monitor_type'}, {name: 'event_monitor_enum'}, {name: 'target_type'}]"
deletePath="<%= agent_event_monitor_path(-1) %>"
editPath="<%= edit_agent_event_monitor_path(-1) %>"
editInPopup="false"
itemType='<%= t('common.agent_event_monitor') %>'
gridColumns="[
{dataIndex: 'name', header: '<%=t "name" %>', id: 'agent_event_monitorsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "description" %>', id: 'agent_event_monitorsGridDescription', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent', header: '<%=t "common.agent_or_group" %>', id: 'agent_event_monitorsGridAgentId', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'event_monitor_type', header: '<%=t ".event_monitor_type" %>', id: 'agent_event_monitorsGridEventMonitorType', locked: false, sortable: true, width: 70, filter: true, filterType: 'list', filterList: <%= "[[0, '#{t('agent_event_monitor.event_monitor_type.manual')}'],
[101, '#{t('agent_event_monitor.event_monitor_type.type_file_added')}'],
[102, '#{t('agent_event_monitor.event_monitor_type.type_file_removed')}'],
[103, '#{t('agent_event_monitor.event_monitor_type.type_file_changed')}'],
[104, '#{t('agent_event_monitor.event_monitor_type.type_file_threshold')}'],
[201, '#{t('agent_event_monitor.event_monitor_type.type_dir_added')}'],
[202, '#{t('agent_event_monitor.event_monitor_type.type_dir_removed')}'],
[203, '#{t('agent_event_monitor.event_monitor_type.type_dir_changed')}'],
[204, '#{t('agent_event_monitor.event_monitor_type.type_dir_threshold')}'],
[301, '#{t('agent_event_monitor.event_monitor_type.type_process_started')}'],
[302, '#{t('agent_event_monitor.event_monitor_type.type_process_ended')}']
]" %>},
{dataIndex: 'disabled', header: '<%=t ".status" %>', id: 'agent_event_monitorsGridDisabled', locked: false, sortable: true, width: 100, filter: true, filterType: 'boolean',
yesText: <%= "'#{t('agent_event_monitor.status.disabled')}'" %>, noText: <%= "'#{t('agent_event_monitor.status.enabled')}'" %> }
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t ".edit_agent_event_monitor" %>',
actsOn: 'one',
actionUrl: '<%= edit_agent_event_monitor_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t ".copy_agent_event_monitor" %>',
actsOn: 'one',
actionUrl: '<%= copy_agent_event_monitor_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t ".delete_agent_event_monitor" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= agent_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%= t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_agent_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 => 'AgentEventMonitor') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t("common.where_used") %>',
actsOn: 'one',
actionUrl: '<%= whereused_agent_event_monitor_path(-1) %>'
}, '-',{
iconCls: 'icon_event_history',
text: '<%=t ".event_history" %>',
actsOn: 'one',
actionUrl: '<%= event_history_agent_event_monitor_path(-1) %>',
usePopup: false
}, '-',{
iconCls: 'icon_enable_agent_event_monitor',
text: '<%=t ".enable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= enable_agent_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".enable_agent_event_monitor_confirm" %>'
}, {
iconCls: 'icon_disable_agent_event_monitor',
text: '<%=t ".disable" %>',
actsOn: 'one',
method: 'POST',
actionUrl: '<%= disable_agent_event_monitor_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".disable_agent_event_monitor_confirm" %>'
},'-',{
iconCls: 'icon_special_instance',
text: '<%=t "common.special_instances" %>',
actsOn: 'one',
actionUrl: '<%= agent_event_monitor_special_instances_path(:agent_event_monitor_id => -1) %>',
usePopup: false
},'-',{
actsOn: 'one',
actionUrl: '<%= send_event_agent_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: 'Manual Event',
actsOn: 'none',
actionUrl: '<%= new_agent_event_monitor_path(:type => 0) %>'
},{
iconCls: 'icon_create',
text: '<%= t "agent_event_monitor.event_monitor_type.type_file" %>',
actsOn: 'none',
actionUrl: '<%= new_agent_event_monitor_path(:type => 101) %>'
},{
iconCls: 'icon_create',
text: '<%= t "agent_event_monitor.event_monitor_type.type_directory" %>',
actsOn: 'none',
actionUrl: '<%= new_agent_event_monitor_path(:type => 201) %>'
},{
iconCls: 'icon_create',
text: '<%= t "agent_event_monitor.event_monitor_type.type_process" %>',
actsOn: 'none',
actionUrl: '<%= new_agent_event_monitor_path(:type => 301) %>'
}]}"
url="<%= agent_event_monitors_path(:format => 'json') %>" style="height:100%;">