%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2014 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['ibmi_agent_environments']['ibmi_agent_environment_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="ibmi_agent_environmentsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'job_description'}, {name: 'user_profile'}, {name: 'agent_failure_action'}]"
deletePath="<%= ibmi_agent_environment_path(-1) %>"
editPath="<%= edit_ibmi_agent_environment_path(-1) %>"
editInPopup="false"
itemType='<%= t('common.ibmi_agent_environment') %>'
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'ibmi_agent_environmentsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'ibmi_agent_environmentsGridDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'job_description', header: '<%= t('.job_description') %>', id: 'ibmi_agent_environmentsGridJobDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'user_profile', header: '<%= t('.user_profile') %>', id: 'ibmi_agent_environmentsGridUserProfile', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_ibmi_agent_environment') %>',
actsOn: 'one',
actionUrl: '<%= edit_ibmi_agent_environment_path(-1) %>'
<%#*usePopup: false%>
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_ibmi_agent_environment') %>',
actsOn: 'one',
actionUrl: '<%= copy_ibmi_agent_environment_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_ibmi_agent_environment') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= ibmi_agent_environment_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_ibmi_agent_environment" %>',
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 => 'IbmiAgentEnvironment') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_ibmi_agent_environment_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_ibmi_agent_environment') %>',
actsOn: 'none',
actionUrl: '<%= new_ibmi_agent_environment_path %>'
}]}"
url="<%= ibmi_agent_environments_path(:format => 'json') %>" style="height:100%;">