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:
chouseknecht
2013-06-24 23:26:53 -04:00
parent 13b8b68449
commit 7943134168
9 changed files with 275 additions and 6 deletions

View File

@@ -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'
}
}
},