%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
<% grid_id = "command_setsGrid" %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['command_sets']['command_set_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="command_setsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}]"
deletePath="<%= command_set_path(-1) %>"
editPath="<%= edit_command_set_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%= t 'common.name'%>', id: 'command_setsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t 'common.description'%>', id: 'command_setsGridDescription', 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.command_set') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%=t ".edit_command_set" %>',
actsOn: 'one',
actionUrl: '<%= edit_command_set_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%=t ".copy_command_set" %>',
actsOn: 'one',
actionUrl: '<%= copy_command_set_path(-1) %>',
usePopup: false
},{
iconCls: 'icon_delete',
text: '<%=t ".delete_command_set" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= command_set_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_command_set" %>',
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 => 'CommandSet') %>'
}, {
iconCls: 'icon_whereused',
text: '<%=t "common.where_used" %>',
actsOn: 'one',
actionUrl: '<%= whereused_command_set_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%=t ".create_command_set" %>',
actsOn: 'none',
actionUrl: '<%= new_command_set_path(:command_set_type => CommandSet::SHARED) %>'
}]}"
url="<%= command_sets_path(:format => 'json') %>" style="height:100%;">