mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
/*********************************************
|
|
* Copyright (c) 2013 AnsibleWorks, Inc.
|
|
*
|
|
* Groups.js
|
|
* List view object for Group data model.
|
|
*
|
|
*
|
|
*/
|
|
angular.module('GroupListDefinition', [])
|
|
.value(
|
|
'GroupList', {
|
|
|
|
name: 'groups',
|
|
iterator: 'group',
|
|
selectTitle: 'Add Group',
|
|
editTitle: 'Groups',
|
|
|
|
fields: {
|
|
name: {
|
|
key: true,
|
|
label: 'Name'
|
|
},
|
|
description: {
|
|
label: 'Description'
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
add: {
|
|
icon: 'icon-plus',
|
|
mode: 'all', // One of: edit, select, all
|
|
ngClick: 'addGroup()',
|
|
class: 'btn btn-mini btn-success',
|
|
awToolTip: 'Create a new group'
|
|
}
|
|
},
|
|
|
|
fieldActions: {
|
|
edit: {
|
|
ngClick: "editGroup(\{\{ group.id \}\})",
|
|
icon: 'icon-edit',
|
|
awToolTip: 'Edit group'
|
|
},
|
|
|
|
delete: {
|
|
ngClick: "deleteGroup(\{\{ group.id \}\},'\{\{ group.name \}\}')",
|
|
icon: 'icon-remove',
|
|
class: 'btn-danger',
|
|
awToolTip: 'Delete group'
|
|
}
|
|
}
|
|
}); |