%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['sql_server_definitions']['manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="sqlserverdefinitionsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'server_name'}, {name: 'server_instance_name'}, {name: 'trusted_connection'}, {name: 'user_id'}]"
deletePath="<%= sql_server_definition_path(-1) %>"
editPath="<%= edit_sql_server_definition_path(-1) %>"
editInPopup="false"
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'sqlserverdefinitionsGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'sqlserverdefinitionsGridDescription', locked: false, sortable: true, filter: true, filterType: 'string'},
{dataIndex: 'server_name', header: '<%= t('sql_server_definitions.server_name') %>',id: 'sqlserverdefinitionsGridServerName', locked: false, sortable: true, filter: true, filterType: 'string'},
{dataIndex: 'server_instance_name', header: '<%= t('sql_server_definitions.server_instance_name') %>',id: 'sqlserverdefinitionsGridSystem', locked: false, sortable: true, filter: true, filterType: 'string'},
{dataIndex: 'trusted_connection', header: '<%= t('sql_server_definitions.trusted_connection') %>',id: 'sqlserverdefinitionsGridTrustedConnection', locked: false, sortable: true, filter: true, filterType: 'boolean', yesText: '<%=t "common.key_yes" %>', noText: '<%=t "common.key_no" %>'},
{dataIndex: 'user_id', header: '<%= t('common.user') %>', id: 'sqlserverdefinitionsGridUser', locked: false, sortable: true, filter: true, filterType: 'string'}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
itemType='<%= t('common.sql_server_definition') %>'
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_sql_server_definition') %>',
actsOn: 'one',
actionUrl: '<%= edit_sql_server_definition_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_sql_server_definition') %>',
actsOn: 'one',
actionUrl: '<%= copy_sql_server_definition_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_sql_server_definition') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= sql_server_definition_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t "sql_server_definitions.index.delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_sql_server_definition" %>',
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 => 'SqlServerDefinition') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_sql_server_definition_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_sql_server_definition') %>',
actsOn: 'none',
actionUrl: '<%= new_sql_server_definition_path %>'
}]}"
url="<%= sql_server_definitions_path(:format => 'json') %>" style="height:100%;">