mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 10:58:03 -02:30
Add radio button support to form-generator. Created permission list and permission add form. Form is currently accessible from User tab.
This commit is contained in:
@@ -94,6 +94,7 @@ angular.module('UserFormDefinition', [])
|
||||
},
|
||||
|
||||
related: { //related colletions (and maybe items?)
|
||||
|
||||
credentials: {
|
||||
type: 'collection',
|
||||
title: 'Credentials',
|
||||
@@ -135,6 +136,53 @@ angular.module('UserFormDefinition', [])
|
||||
awToolTip: 'Delete the credential'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
permissions: {
|
||||
type: 'collection',
|
||||
title: 'Permissions',
|
||||
iterator: 'permission',
|
||||
open: false,
|
||||
|
||||
actions: {
|
||||
add: {
|
||||
ngClick: "add('permissions')",
|
||||
icon: 'icon-plus',
|
||||
label: 'Add',
|
||||
awToolTip: 'Add a permission for this user'
|
||||
}
|
||||
},
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
key: true,
|
||||
label: 'Name'
|
||||
},
|
||||
project: {
|
||||
label: 'Project'
|
||||
},
|
||||
inventory: {
|
||||
label: 'Inventory'
|
||||
}
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
edit: {
|
||||
label: 'Edit',
|
||||
ngClick: "edit('permissions', \{\{ permission.id \}\}, '\{\{ permission.name \}\}')",
|
||||
icon: 'icon-edit',
|
||||
"class": 'btn-success',
|
||||
awToolTip: 'Edit the permission'
|
||||
},
|
||||
|
||||
"delete": {
|
||||
label: 'Delete',
|
||||
ngClick: "delete('permissions', \{\{ permission.id \}\}, '\{\{ permission.name \}\}', 'permissions')",
|
||||
icon: 'icon-remove',
|
||||
"class": 'btn-danger',
|
||||
awToolTip: 'Delete the permission'
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user