Show username in UserUpdateForm (Fixes #1781)
This commit is contained in:
parent
94366f35ab
commit
b4482afa38
@ -255,8 +255,16 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// angular-formly fields for user form
|
// angular-formly fields for user form
|
||||||
getFormFields: function () {
|
getFormFields: function (hideOnCreateForm) {
|
||||||
return [
|
return [
|
||||||
|
{
|
||||||
|
key: 'username',
|
||||||
|
type: 'input',
|
||||||
|
templateOptions: {
|
||||||
|
label: gettextCatalog.getString('Username')
|
||||||
|
},
|
||||||
|
hide: hideOnCreateForm
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'title',
|
key: 'title',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
@ -462,7 +470,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
|||||||
Group.bindAll({where: {id: {'>': 2}}}, $scope, 'groups');
|
Group.bindAll({where: {id: {'>': 2}}}, $scope, 'groups');
|
||||||
$scope.alert = {};
|
$scope.alert = {};
|
||||||
// get all form fields
|
// get all form fields
|
||||||
$scope.formFields = UserForm.getFormFields();
|
$scope.formFields = UserForm.getFormFields(true);
|
||||||
|
|
||||||
// save user
|
// save user
|
||||||
$scope.save = function (user) {
|
$scope.save = function (user) {
|
||||||
|
Loading…
Reference in New Issue
Block a user