mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Update User/Team form config
This commit is contained in:
parent
fed9806313
commit
94ea3cfcfe
@ -115,7 +115,7 @@ export default
|
||||
order_by: 'id'
|
||||
},
|
||||
type: 'collection',
|
||||
title: i18n._('Granted Permissions'),
|
||||
title: i18n._('Permissions'),
|
||||
iterator: 'role',
|
||||
open: false,
|
||||
index: false,
|
||||
|
||||
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user