%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['sap']['system']['home'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="sap_system_definitionsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'message_server'}, {name: 'group_or_server'}, {name: 'application_server'}, {name: 'system_number'}, {name: 'system_id'},
{name: 'router'}, {name: 'sld_registered'}, {name: 'polling_intercepted_jobs'}, {name: 'polling_jobs'}, { name: 'time_zone'}]"
deletePath="<%= sap_system_definition_path(-1) %>"
editPath="<%= edit_sap_system_definition_path(-1) %>"
editInPopup="false"
itemType='<%= t('common.sap_system_definition') %>'
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'sap_system_definitionsGridName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'sap_system_definitionsGridDescription', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'message_server', header: '<%= t('.message_server') %>', id: 'sap_system_definitionsGridMessageServer', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'group_or_server', header: '<%= t('.group_or_server') %>', id: 'sap_system_definitionsGridGroupOrServer', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'application_server', header: '<%= t('.application_server') %>', id: 'sap_system_definitionsGridApplicationServer', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'system_number', header: '<%= t('.system_number') %>', id: 'sap_system_definitionsGridSystemNumber', locked: false, sortable: true, width: 100, filter: true, filterType: 'numeric'},
{dataIndex: 'system_id', header: '<%= t('.system_id') %>', id: 'sap_system_definitionsGridSystemId', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'router', header: '<%= t('.router') %>', id: 'sap_system_definitionsGridRouter', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'sld_registered', header: '<%= t('.sld_registered') %>', id: 'sap_system_definitionsSLDRegistered', locked: false, sortable: true, width: 100, filter: true, filterType: 'boolean', yesText: '<%= t('common.registered') %>', noText: '<%= t('common.not_registered') %>'},
{dataIndex: 'polling_intercepted_jobs', header: '<%= t('.polling_intercepted_jobs') %>', id: 'sap_system_definitionsGridPollingInterceptedJobs', locked: false, sortable: true, width: 100, filter: true, filterType: 'boolean', yesText: '<%= t('common.active') %>', noText: '<%= t('common.inactive') %>'},
{dataIndex: 'polling_jobs', header: '<%= t('.polling_jobs') %>', id: 'sap_system_definitionsGridPollingJobs', locked: false, sortable: true, width: 100, filter: true, filterType: 'boolean', yesText: '<%= t('common.active') %>', noText: '<%= t('common.inactive') %>'},
{dataIndex: 'time_zone', header: '<%= t(".timezone") %>', id: 'sap_system_definitionsGridTimeZone', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_sap_system_definition') %>',
actsOn: 'one',
actionUrl: '<%= edit_sap_system_definition_path(-1) %>',
keepMask: true
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_sap_system_definition') %>',
actsOn: 'one',
actionUrl: '<%= copy_sap_system_definition_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_sap_system_definition') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= sap_system_definition_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_sap_system_definition" %>',
actsOn: 'many',
handler: function(){exportController.openExportPopup.call(exportController)}
}, '-',{
iconCls: 'icon_view',
text: '<%=t ".view_all_environments" %>',
actsOn: 'one',
actionUrl: '<%= sap_system_definition_sap_system_environments_path(-1) %>'
},{
iconCls: 'icon_audit',
text: '<%=t "common.show_audit_changes" %>',
actsOn: 'one',
actionUrl: '<%= audits_path(:auditable_id => -1, :auditable_type => 'SapSystemDefinition') %>'
},{
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_sap_system_definition_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_sap_system_definition') %>',
actsOn: 'none',
actionUrl: '<%= new_sap_system_definition_path %>'
}]}"
url="<%= sap_system_definitions_path(:format => 'json') %>" style="height:100%;">