mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Update User/Team form config
This commit is contained in:
@@ -115,7 +115,7 @@ export default
|
|||||||
order_by: 'id'
|
order_by: 'id'
|
||||||
},
|
},
|
||||||
type: 'collection',
|
type: 'collection',
|
||||||
title: i18n._('Granted Permissions'),
|
title: i18n._('Permissions'),
|
||||||
iterator: 'role',
|
iterator: 'role',
|
||||||
open: false,
|
open: false,
|
||||||
index: false,
|
index: false,
|
||||||
|
|||||||
@@ -173,14 +173,13 @@ export default
|
|||||||
basePath: 'api/v1/users/{{$stateParams.user_id}}/roles/',
|
basePath: 'api/v1/users/{{$stateParams.user_id}}/roles/',
|
||||||
search: {
|
search: {
|
||||||
page_size: '10',
|
page_size: '10',
|
||||||
// @todo ask about name field / serializer on this endpoint
|
|
||||||
order_by: 'id'
|
order_by: 'id'
|
||||||
},
|
},
|
||||||
awToolTip: i18n._('Please save before assigning to organizations'),
|
awToolTip: i18n._('Please save before assigning to organizations'),
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
hideSearchAndActions: true,
|
hideSearchAndActions: true,
|
||||||
type: 'collection',
|
type: 'collection',
|
||||||
title: i18n._('Granted permissions'),
|
title: i18n._('Permissions'),
|
||||||
iterator: 'permission',
|
iterator: 'permission',
|
||||||
open: false,
|
open: false,
|
||||||
index: false,
|
index: false,
|
||||||
@@ -203,12 +202,16 @@ export default
|
|||||||
noSort: true
|
noSort: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// @issue https://github.com/ansible/ansible-tower/issues/3487
|
actions: {
|
||||||
// actions: {
|
add: {
|
||||||
// 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: {
|
fieldActions: {
|
||||||
"delete": {
|
"delete": {
|
||||||
label: i18n._('Remove'),
|
label: i18n._('Remove'),
|
||||||
|
|||||||
Reference in New Issue
Block a user