<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>" includeTagFilter="false" baseParameters="{ results: 300, trap_monitor_id: '<%= params[:trap_monitor_id] %>', tag: '<%= params[:tag] %>' }" predefinedFilters="{ filters: [{ name: '<%= t("common.filter_two_days") %>', filter: [{ key: 'server_event_timestamp_utc', value: { after: -2 } }] }, { name: '<%= t("common.filter_today_all") %>', filter: [{ key: 'server_event_timestamp_utc', value: { on: 'T' } }] }] }" <% elsif (params[:apply_filters]) %> stateId="snmp_trap_monitor_drill_in" title = "<%= t("dashboards.page_name")+' » '+t("dashboards.chart_name_#{params[:chart_id]}")+' » '+t("#{controller.controller_name}.page_title") %>" includeTagFilter="true" tagMatchAnyDefault="<%= match_any_default %>" advanceDateFilter="{dateField: 'server_event_timestamp_utc'<%= @date %>}" <% else %> title = "<%= t("#{controller.controller_name}.page_title") %>" includeTagFilter="true" tagMatchAnyDefault="<%= match_any_default %>" advanceDateFilter="{dateField: 'server_event_timestamp_utc'}" <% end %> includeAutoRefresh="true" helpUrl="<%=help_link(HELP_URL_CONFIG['history']['snmp_trap_monitor_history'])%>" region="center" lazyRender="true" dojoType="helpsys.ext.LiveGrid" autoExpandColumn="snmp_trap_eventsGridEventData" authenticity_token="<%= form_authenticity_token %>" dataColumns="[{name: 'id'}, {name: 'trap_monitor_name'}, {name: 'ip_address'}, {name: 'server_event_timestamp_utc'}, {name: 'error_code'}, {name: 'event_data'} ]" deletePath="<%= snmp_trap_event_path(-1) %>" gridColumns="[ {dataIndex: 'id', header: '<%=t "common.event_id" %>', id: 'snmp_trap_eventsGridEventID', locked: false, sortable: true, width: 80, filter: true, filterType: 'numeric'}, {dataIndex: 'trap_monitor_name', header: '<%=t ".monitor_name" %>', id: 'snmp_trap_eventsGridMonitorName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'ip_address', header: '<%=t ".ip_address" %>', id: 'snmp_trap_eventsGridIpAddress', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'server_event_timestamp_utc', header: '<%=t ".server_timestamp" %>', id: 'snmp_trap_eventsGridServerTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'}, {dataIndex: 'error_code', header: '<%=t ".error_code" %>', id: 'snmp_trap_eventsGridErrorCode', locked: false, sortable: true, width: 150}, {dataIndex: 'event_data', header: '<%=t ".event_data" %>', id: 'snmp_trap_eventsGridEventData', locked: false, sortable: true, width: 200} ]" includeDelete="true" itemType='<%= t('common.snmp_trap_monitor_history_entry') %>' autoFill="false" forceFit="false" menuCfg="{items: [{ iconCls: 'icon_delete', text: '<%=t ".delete_history" %>', actsOn: 'many', method: 'DELETE', actionUrl: '<%= snmp_trap_event_path(-1) %>', ajaxRequest: true, actionId: 'delete_history', customAction: true, confirmText: '<%=t ".delete_confirmation" %>' } ]}" sortField="{field: 'server_event_timestamp_utc', direction: 'DESC'}" tbar="{items: []}" url="<%= snmp_trap_events_path(:format => 'json') %>">