Update User/Team form config

This commit is contained in:
Leigh Johnson 2016-11-26 16:11:24 -05:00
parent fed9806313
commit 94ea3cfcfe
2 changed files with 12 additions and 9 deletions

View File

@ -115,7 +115,7 @@ export default
order_by: 'id'
},
type: 'collection',
title: i18n._('Granted Permissions'),
title: i18n._('Permissions'),
iterator: 'role',
open: false,
index: false,

View File

@ -173,14 +173,13 @@ export default
basePath: 'api/v1/users/{{$stateParams.user_id}}/roles/',
search: {
page_size: '10',
// @todo ask about name field / serializer on this endpoint
order_by: 'id'
},
awToolTip: i18n._('Please save before assigning to organizations'),
dataPlacement: 'top',
hideSearchAndActions: true,
type: 'collection',
title: i18n._('Granted permissions'),
title: i18n._('Permissions'),
iterator: 'permission',
open: false,
index: false,
@ -203,12 +202,16 @@ export default
noSort: true
},
},
// @issue https://github.com/ansible/ansible-tower/issues/3487
// actions: {
// add: {
// }
// }
actions: {
add: {
ngClick: "$state.go('.add')",
label: 'Add',
awToolTip: i18n._('Grant Permission'),
actionClass: 'btn List-buttonSubmit',
buttonContent: '+ ' + i18n._('ADD PERMISSIONS'),
ngShow: '(puser_obj.summary_fields.user_capabilities.edit || canAdd)'
}
},
fieldActions: {
"delete": {
label: i18n._('Remove'),