%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %>
"
helpUrl="<%=help_link(HELP_URL_CONFIG['scheduling_objects']['web_service_servers']['manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
baseParameters="{
tag: '<%= params[:tag] %>'
}"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="web_server_definitionsGridDescription"
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'base_url'}, {name: 'auth_type'}]"
deletePath="<%= web_server_definition_path(-1) %>"
deleteConfirmation='<%=t ".delete_confirmation" %>'
editPath="<%= edit_web_server_definition_path(-1) %>"
editInPopup="false"
itemType='<%= t('common.job_definition') %>'
gridColumns="[
{dataIndex: 'name', header: '<%= t('common.name') %>', id: 'web_server_definitionsGridName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%= t('common.description') %>', id: 'web_server_definitionsGridDescription', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'base_url', header: '<%= t('.base_url') %>', id: 'web_server_definitionsGridSystemName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'auth_type', header: '<%= t('.auth_type') %>', id: 'web_server_definitionsGridRepositoryDomain', locked: false, sortable: false, width: 150, filter: false}
]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_web_server_definition') %>',
actsOn: 'one',
actionUrl: '<%= edit_web_server_definition_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_web_server_definition') %>',
actsOn: 'one',
actionUrl: '<%= copy_web_server_definition_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_web_server_definition') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= web_server_definition_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_export',
text: '<%=t ".export_web_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 => 'WebServerDefinition') %>'
},{
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_web_server_definition_path(-1) %>'
}]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_web_server_definition') %>',
actsOn: 'none',
actionUrl: '<%= new_web_server_definition_path %>'
}]}"
url="<%= web_server_definitions_path(:format => 'json') %>" style="height:100%;">