<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>" stateId="remote_event_histories_focused" baseParameters="{ results: 300, remote_event_id: '<%= params[:remote_event_id] %>' }" includeTagFilter="false" <% elsif (params[:remote_server_id]) %> title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>" stateId="remote_event_histories_focused" baseParameters="{ results: 300, remote_server_id: '<%= params[:remote_server_id] %>' }" includeTagFilter="false" <% else %> advanceDateFilter="{dateField: 'server_time_utc'}" stateId="remote_event_historiesGrid" title = "<%= t("#{controller.controller_name}.page_title") %>" includeTagFilter="false" tagMatchAnyDefault="<%= match_any_default %>" <% end %> includeAutoRefresh="true" helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['remote_servers']['event_history'])%>" region="center" lazyRender="true" dojoType="helpsys.ext.LiveGrid" authenticity_token="<%= form_authenticity_token %>" dataColumns="[{name: 'id'}, {name: 'object_name'}, {name: 'event_type'}, {name: 'status'}, {name: 'remote_server'}, {name: 'source_key'}, {name: 'source_name'}, {name: 'server_time_utc'}, {name: 'remote_system_time'} ]" deletePath="<%= remote_event_history_path(-1) %>" itemType='<%= t('common.remote_event_history_entry') %>' gridColumns="[ {dataIndex: 'id', header: '<%=t ".id" %>', id: 'remoteEventHistoriesGridId', locked: false, sortable: true, width: 80, filter: true, filterType: 'numeric'}, {dataIndex: 'object_name', header: '<%=t ".object_name" %>', id: 'remoteEventHistoriesGridObjectName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'event_type', header: '<%=t ".type" %>', id: 'remoteEventHistoriesGridEventType', locked: false, sortable: false, width: 150, filter: true, filterType: 'list', filterList: <%= RemoteEvent.FILTER_EVENT_TYPES %>}, {dataIndex: 'status', header: '<%=t ".status" %>', id: 'remoteEventHistoriesGridStatus', locked: false, sortable: true, width: 100, filter: true, filterType: 'list', filterList: <%= JobHistory.FILTER_STATUS_ALL %>}, {dataIndex: 'remote_server', header: '<%=t ".remote_server" %>', id: 'remoteEventHistoriesGridRemoteServer', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'source_key', header: '<%=t ".source_key" %>', id: 'remoteEventHistoriesGridSourceKey', locked: false, sortable: true, width: 150, filter: true, filterType: 'numeric'}, {dataIndex: 'source_name', header: '<%=t ".source_name" %>', id: 'remoteEventHistoriesGridSourceName', locked: false, hidden: true, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'server_time_utc', header: '<%=t ".server_time_utc" %>', id: 'remoteEventHistoriesGridServerTimeUtc', locked: false, sortable: true, width: 200, filter: true, filterType: 'dateTime'}, {dataIndex: 'remote_system_time', header: '<%=t ".remote_system_time" %>', id: 'remoteEventHistoriesGridRemoteSystemTime', locked: false, sortable: true, width: 200, filter: true, filterType: 'dateTime'} ]" includeDelete="true" autoFill="false" forceFit="false" menuCfg="{items: [{ iconCls: 'icon_delete', text: '<%=t ".delete_history" %>', actsOn: 'many', method: 'DELETE', actionUrl: '<%= remote_event_history_path(-1) %>', ajaxRequest: true, actionId: 'delete_history', customAction: true, confirmText: '<%=t ".delete_confirmation" %>' } ]}" sortField="{field: 'id', direction: 'DESC'}" tbar="{items: []}" url="<%= remote_event_histories_path(:format => 'json') %>">