%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['date_lists']['date_list_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="date_objectsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}]"
deletePath="<%= date_object_path(-1) %>"
editPath="<%= edit_date_object_path(-1) %>"
editInPopup="false"
gridColumns="[{dataIndex: 'name', header: '<%=t "common.name" %>', id: 'date_objectsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "common.description" %>', id: 'date_objectsGridDescription', 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.date_list') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_date_object') %>',
actsOn: 'one',
actionUrl: '<%= edit_date_object_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_date_object') %>',
actsOn: 'one',
actionUrl: '<%= copy_date_object_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_date_object') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= date_object_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_date_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 => 'DateObject') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_date_object_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_date_object') %>',
actsOn: 'none',
actionUrl: '<%= new_date_object_path %>'
}]}"
url="<%= date_objects_path(:format => 'json') %>" style="height:100%;">