%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['notification_lists']['notification_list_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="notificationListsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}]"
deletePath="<%= notification_list_path(-1) %>"
editPath="<%= edit_notification_list_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'notificationListsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'notificationListsGridDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
itemType='<%= t('common.notification_list') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%=t ".edit_notification_list" %>',
actsOn: 'one',
actionUrl: '<%= edit_notification_list_path(-1) %>'
<%#*usePopup: false%>
},{
iconCls: 'icon_copy',
text: '<%=t ".copy_notification_list" %>',
actsOn: 'one',
actionUrl: '<%= copy_notification_list_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%=t ".delete_notification_list" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= notification_list_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_notification_list" %>',
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 => 'NotificationList') %>'
},{
iconCls: 'icon_output_distribution_history',
text: '<%=t "common.output_distribution_history" %>',
actsOn: 'one',
actionUrl: '<%= output_distribution_histories_path() + "?notification_list_id=-1" %>'
},{
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_notification_list_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%=t ".create_notification_list" %>',
actsOn: 'none',
actionUrl: '<%= new_notification_list_path %>'
}]}"
url="<%= notification_lists_path(:format => 'json') %>" style="height:100%;">