%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
<% grid_id = "ibmi_commandSetsGrid" %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['ibmi_command_sets']['ibmi_command_set_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="ibmi_commandSetsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}]"
deletePath="<%= ibmi_command_set_path(-1) %>"
deleteConfirmation='<%=t ".delete_confirmation" %>'
editPath="<%= edit_ibmi_command_set_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%= t 'common.name'%>', id: 'ibmi_commandSetsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t 'common.description'%>', id: 'ibmi_commandSetsGridDescription', 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_ibmi_command_set" %>',
actsOn: 'one',
actionUrl: '<%= edit_ibmi_command_set_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%=t ".copy_ibmi_command_set" %>',
actsOn: 'one',
actionUrl: '<%= copy_ibmi_command_set_path(-1) %>',
usePopup: false
},{
iconCls: 'icon_delete',
text: '<%=t ".delete_ibmi_command_set" %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= ibmi_command_set_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_ibmi_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', :auditable_area => 'IbmiCommandSet') %>'
}, {
iconCls: 'icon_whereused',
text: '<%=t "common.where_used" %>',
actsOn: 'one',
actionUrl: '<%= whereused_ibmi_command_set_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%=t ".create_ibmi_command_set" %>',
actsOn: 'none',
actionUrl: '<%= new_ibmi_command_set_path(:command_set_type => CommandSet::SHARED_IBMI) %>'
}]}"
url="<%= ibmi_command_sets_path(:format => 'json') %>" style="height:100%;">