mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
/*********************************************
|
|
* Copyright (c) 2013 AnsibleWorks, Inc.
|
|
*
|
|
* Organizations.js
|
|
* List view object for Organizations data model.
|
|
*
|
|
*
|
|
*/
|
|
angular.module('OrganizationListDefinition', [])
|
|
.value(
|
|
'OrganizationList', {
|
|
|
|
name: 'organizations',
|
|
iterator: 'organization',
|
|
selectTitle: 'Add Organizations',
|
|
editTitle: 'Organizations',
|
|
|
|
fields: {
|
|
name: {
|
|
key: true,
|
|
label: 'Name'
|
|
},
|
|
description: {
|
|
label: 'Description'
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
add: {
|
|
icon: 'icon-plus',
|
|
mode: 'all', // One of: edit, select, all
|
|
ngClick: 'addOrganization()',
|
|
class: 'btn btn-mini btn-success',
|
|
awToolTip: 'Create a new row'
|
|
}
|
|
},
|
|
|
|
fieldActions: {
|
|
edit: {
|
|
ngClick: "editOrganization(\{\{ organization.id \}\})",
|
|
icon: 'icon-edit',
|
|
awToolTip: 'Edit'
|
|
},
|
|
|
|
delete: {
|
|
ngClick: "deleteOrganization(\{\{ organization.id \}\},'\{\{ organization.name \}\}')",
|
|
icon: 'icon-remove',
|
|
class: 'btn-danger',
|
|
awToolTip: 'Delete'
|
|
}
|
|
}
|
|
});
|