Update user add/edit UI to support System Auditor setting

Also moved the LDAP indicator to be inline with the mockups (bubble next
to the uesrname in the upper left)

 #1937
 #1888
This commit is contained in:
Akita Noek
2016-05-18 16:05:35 -04:00
parent d79d8cbfba
commit 58f142e2e6
4 changed files with 78 additions and 24 deletions

View File

@@ -87,21 +87,13 @@ export default
associated: 'password',
autocomplete: false
},
is_superuser: {
label: 'Superuser <span style="text-transform:none;">(User has full system administration privileges)</span>',
type: 'checkbox',
trueValue: 'true',
falseValue: 'false',
"default": 'false',
ngShow: "current_user['is_superuser'] == true",
ngModel: 'is_superuser'
user_type: {
label: 'User Type',
type: 'select',
ngOptions: 'item as item.label for item in user_type_options track by item.type',
disableChooseOption: true,
ngModel: 'user_type',
},
ldap_user: {
label: 'Created by LDAP',
type: 'checkbox',
readonly: true,
awFeature: 'ldap'
}
},
buttons: {