%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="systemMessagesGrid-message"
title = "<%= t("#{controller.controller_name}.page_title") %>"
dataColumns="[
{ name: 'id' },
{ name: 'message' },
{ name: 'timestamp' },
{ name: 'acknowledged' },
{ name: 'acknowledged_by' },
{ name: 'acknowledged_date' }]"
<%= "lazyRender = 'true'" if lazy_render %>
gridColumns="[
{ dataIndex: 'timestamp', header: '<%=t "common.date_header" %>', sortable: true, width: 120, filter: true, filterType: 'date'},
{ dataIndex: 'message', header: '<%=t "common.message_header" %>', id: 'systemMessagesGrid-message', sortable: false, width: 140, filter: true, filterType: 'string'},
{ dataIndex: 'acknowledged', header: '<%=t ".acknowledged" %>', sortable: true, width: 90, filter: true, filterType: 'boolean', yesText: '<%=t "common.key_yes" %>', noText: '<%=t "common.key_no" %>'},
{ dataIndex: 'acknowledged_by', header: '<%=t ".acknowledged_by" %>', sortable: true, width: 120, filter: true, filterType: 'string'},
{ dataIndex: 'acknowledged_date', header: '<%=t ".acknowledged_date" %>', sortable: true, width: 160, filter: true, filterType: 'date'}]"
sortField="{field: 'timestamp', direction: 'DESC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%=t ".acknowledge" %>',
actsOn: 'many',
actionUrl: '<%= acknowledge_msg_system_messages_path(:ids => -1) %>',
confirmText: '<%=t ".acknowledge_confirmation" %>',
ajaxRequest: true,
usePopup: false
}]}"
url="<%= system_messages_path(:format => 'json') %>">