From b4482afa38dccba2c6c4e020a06472157657fe99 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 21 Jan 2016 22:34:18 +0100 Subject: [PATCH] Show username in UserUpdateForm (Fixes #1781) --- openslides/users/static/js/users/site.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openslides/users/static/js/users/site.js b/openslides/users/static/js/users/site.js index 26de52774..d7134b80b 100644 --- a/openslides/users/static/js/users/site.js +++ b/openslides/users/static/js/users/site.js @@ -255,8 +255,16 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users']) } }, // angular-formly fields for user form - getFormFields: function () { + getFormFields: function (hideOnCreateForm) { return [ + { + key: 'username', + type: 'input', + templateOptions: { + label: gettextCatalog.getString('Username') + }, + hide: hideOnCreateForm + }, { key: 'title', type: 'input', @@ -462,7 +470,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users']) Group.bindAll({where: {id: {'>': 2}}}, $scope, 'groups'); $scope.alert = {}; // get all form fields - $scope.formFields = UserForm.getFormFields(); + $scope.formFields = UserForm.getFormFields(true); // save user $scope.save = function (user) {