%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
<% elsif (params[:apply_filters]) %>
title = "<%= t("dashboards.page_name")+' » '+t("dashboards.chart_name_#{params[:chart_id]}")+' » '+t("#{controller.controller_name}.page_title") %>"
<% else %>
title = "<%= t("#{controller.controller_name}.page_title") %>"
<% end %>
helpUrl="<%=help_link(HELP_URL_CONFIG['admin']['auditing']['auditing_manager'])%>"
lazyRender="true"
region="center"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="auditGridAction"
<% if (params[:auditable_id] && params[:auditable_type]) %>
stateId="audit_histories_focused"
baseParameters="{
results: 300,
auditable_id: <%= params[:auditable_id] %>,
auditable_type: '<%= params[:auditable_type] %>',
<% if (params[:auditable_area]) %>
auditable_area: '<%= params[:auditable_area] %>',
<% end %>
tag: '<%= params[:tag] %>'
}"
includeTagFilter="false"
<% elsif (params[:apply_filters]) %>
stateId="audit_histories_drill_in"
<% end %>
dataColumns="[{name: 'id'}, { name: 'action' }, {name: 'auditable_type'}, {name: 'created_at'}, {name: 'username'}, {name: 'area'}, {name: 'key_value'}]"
forceFit="true"
gridColumns="[
{ dataIndex: 'created_at', header: '<%=t ".date_header" %>', id: 'auditGridDate', locked: false, sortable: true, width: 200, filter: true, filterType: 'date'},
{ dataIndex: 'area', header: '<%=t ".area_header" %>', id: 'auditGridArea', locked: false, sortable: true, width: 200, filter: true, filterType: 'list', filterList: <%= @areas %>},
{ dataIndex: 'key_value', header: '<%=t ".key_header" %>', id: 'auditGridKey', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{ dataIndex: 'action', header: '<%=t ".action_header" %>', id: 'auditGridAction', locked: false, sortable: true, width: 200, filter: true, filterType: 'list', filterList: <%= @actions %>},
{ dataIndex: 'auditable_type', header: '<%=t ".type_header" %>', id: 'auditGridType', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{ dataIndex: 'username', header: '<%=t ".user_header" %>', id: 'auditGridUser', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'}
]"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
showPath="<%= audit_path(-1) %>"
sortField="{field: 'created_at', direction: 'DESC'}"
url="<%= audits_path(:format => 'json') %>"
tbar="{items: []}"
menuCfg="{items: [{
iconCls: 'icon_page',
text: '<%=t ".show"%>',
actsOn: 'one',
usePopup: true,
actionUrl: '<%= audit_path(-1) %>'
}]}">