mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
fix org list
This commit is contained in:
@@ -6,61 +6,59 @@
|
|||||||
|
|
||||||
|
|
||||||
export default [function() {
|
export default [function() {
|
||||||
return function() {
|
return {
|
||||||
return {
|
name: 'organizations',
|
||||||
name: 'organizations',
|
iterator: 'organization',
|
||||||
iterator: 'organization',
|
selectTitle: 'Add Organizations',
|
||||||
selectTitle: 'Add Organizations',
|
selectInstructions: '<p>Select existing organizations by clicking each organization or checking the related checkbox. When finished, ' +
|
||||||
selectInstructions: '<p>Select existing organizations by clicking each organization or checking the related checkbox. When finished, ' +
|
'click the blue <em>Select</em> button, located bottom right.</p><p>Create a new organization by clicking the ' +
|
||||||
'click the blue <em>Select</em> button, located bottom right.</p><p>Create a new organization by clicking the ' +
|
'<i class=\"fa fa-plus\"></i> button.</p>',
|
||||||
'<i class=\"fa fa-plus\"></i> button.</p>',
|
editTitle: 'Organizations',
|
||||||
editTitle: 'Organizations',
|
hover: true,
|
||||||
hover: true,
|
index: false,
|
||||||
index: false,
|
|
||||||
|
|
||||||
fields: {
|
fields: {
|
||||||
name: {
|
name: {
|
||||||
key: true,
|
key: true,
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-lg-4 col-md-6 col-sm-8 col-xs-8'
|
columnClass: 'col-lg-4 col-md-6 col-sm-8 col-xs-8'
|
||||||
},
|
|
||||||
description: {
|
|
||||||
label: 'Description',
|
|
||||||
columnClass: 'hidden-sm hidden-xs',
|
|
||||||
excludeModal: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
description: {
|
||||||
actions: {
|
label: 'Description',
|
||||||
add: {
|
columnClass: 'hidden-sm hidden-xs',
|
||||||
mode: 'all', // One of: edit, select, all
|
excludeModal: true
|
||||||
ngClick: 'addOrganization()',
|
|
||||||
awToolTip: 'Create a new organization',
|
|
||||||
awFeature: 'multiple_organizations',
|
|
||||||
actionClass: 'btn List-buttonSubmit',
|
|
||||||
buttonContent: '+ ADD'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
fieldActions: {
|
|
||||||
edit: {
|
|
||||||
label: 'Edit',
|
|
||||||
ngClick: "editOrganization(organization.id)",
|
|
||||||
icon: 'icon-edit',
|
|
||||||
"class": 'btn-xs btn-default',
|
|
||||||
awToolTip: 'Edit organization',
|
|
||||||
dataPlacement: 'top'
|
|
||||||
},
|
|
||||||
|
|
||||||
"delete": {
|
|
||||||
label: 'Delete',
|
|
||||||
ngClick: "deleteOrganization(organization.id, organization.name)",
|
|
||||||
icon: 'icon-trash',
|
|
||||||
"class": 'btn-xs btn-danger',
|
|
||||||
awToolTip: 'Delete organization',
|
|
||||||
dataPlacement: 'top'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
},
|
||||||
|
|
||||||
|
actions: {
|
||||||
|
add: {
|
||||||
|
mode: 'all', // One of: edit, select, all
|
||||||
|
ngClick: 'addOrganization()',
|
||||||
|
awToolTip: 'Create a new organization',
|
||||||
|
awFeature: 'multiple_organizations',
|
||||||
|
actionClass: 'btn List-buttonSubmit',
|
||||||
|
buttonContent: '+ ADD'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
fieldActions: {
|
||||||
|
edit: {
|
||||||
|
label: 'Edit',
|
||||||
|
ngClick: "editOrganization(organization.id)",
|
||||||
|
icon: 'icon-edit',
|
||||||
|
"class": 'btn-xs btn-default',
|
||||||
|
awToolTip: 'Edit organization',
|
||||||
|
dataPlacement: 'top'
|
||||||
|
},
|
||||||
|
|
||||||
|
"delete": {
|
||||||
|
label: 'Delete',
|
||||||
|
ngClick: "deleteOrganization(organization.id, organization.name)",
|
||||||
|
icon: 'icon-trash',
|
||||||
|
"class": 'btn-xs btn-danger',
|
||||||
|
awToolTip: 'Delete organization',
|
||||||
|
dataPlacement: 'top'
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|||||||
@@ -745,9 +745,6 @@ function(ConfigurationUtils, i18n, $rootScope) {
|
|||||||
.directive('awToolTip', [function() {
|
.directive('awToolTip', [function() {
|
||||||
return {
|
return {
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
// if (attrs.class.indexOf("JobResultsStdOut") > -1) {
|
|
||||||
// debugger;
|
|
||||||
// }
|
|
||||||
var delay = { show: 200, hide: 0 },
|
var delay = { show: 200, hide: 0 },
|
||||||
placement,
|
placement,
|
||||||
stateChangeWatcher;
|
stateChangeWatcher;
|
||||||
|
|||||||
Reference in New Issue
Block a user