%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
<% else %>
title="<%= t("#{controller.controller_name}.page_title") %>"
<% end %>
helpUrl="<%=help_link(HELP_URL_CONFIG['sap']['environments']['home'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="sap_system_environmentsGridDescription"
baseParameters="{
sap_system_definition_id: <%= params[:sap_system_definition_id] %>,
tag: '<%= params[:tag] %>'
}"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'client_code'}, {name: 'language'},{name: 'sap_username'}]"
deletePath="<%= sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>"
editPath="<%= edit_sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>"
editInPopup="false"
itemType='<%= t('common.sap_system_environment') %>'
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'sap_system_environmentsGridName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'sap_system_environmentsGridDescription', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'client_code', header: '<%= t('.client_code') %>', id: 'sap_system_environmentsGridClientCode', locked: false, sortable: true, width: 150, filter: true, filterType: 'numeric'},
{dataIndex: 'language', header: '<%= t('.language') %>', id: 'sap_system_environmentsGridLanguage', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'},
{dataIndex: 'sap_username', header: '<%= t('.username') %>', id: 'sap_system_environmentsGridSapUsername', 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_environment') %>',
actsOn: 'one',
actionUrl: '<%= edit_sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>'
<%#*usePopup: false%>
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_sap_system_environment') %>',
actsOn: 'one',
actionUrl: '<%= copy_sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_sap_system_environment') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
},{
iconCls: 'icon_audit',
text: '<%=t "common.show_audit_changes" %>',
actsOn: 'one',
actionUrl: '<%= audits_path(:auditable_id => -1, :auditable_type => 'SapSystemEnvironment') %>'
},{
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id],-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_sap_system_environment') %>',
actsOn: 'none',
actionUrl: '<%= new_sap_system_definition_sap_system_environment_path(params[:sap_system_definition_id]) %>'
}]}"
url="<%= sap_system_definition_sap_system_environments_path(params[:sap_system_definition_id], :format => 'json') %>" style="height:100%;">