feat(users): use displayName alternative first name and last name

This commit is contained in:
OldHawk
2017-11-09 16:36:40 +08:00
parent 8de65c386c
commit 22343353bd
12 changed files with 24 additions and 65 deletions

View File

@@ -3,23 +3,13 @@
<form name="vm.userForm" ng-submit="vm.updateUserProfile(vm.userForm.$valid)" class="signin" novalidate autocomplete="off">
<fieldset>
<div class="form-group" show-errors>
<label for="firstName">{{ 'STATUS_FIELD.FIRST_NAME' | translate}}</label>
<label for="firstName">{{ 'STATUS_FIELD.DISPLAY_NAME' | translate}}</label>
<input type="text" id="firstName" name="firstName" class="form-control" ng-model="vm.user.firstName"
placeholder="{{ 'STATUS_FIELD.FIRST_NAME' | translate}}"
placeholder="{{ 'STATUS_FIELD.DISPLAY_NAME' | translate}}"
required autofocus>
<div ng-messages="vm.userForm.firstName.$error" role="alert">
<p class="help-block error-text" ng-message="required">{{ 'SIGN.FN_REQUIRED' | translate}}</p>
</div>
</div>
<div class="form-group" show-errors>
<label for="lastName">{{ 'STATUS_FIELD.LAST_NAME' | translate}}</label>
<input type="text" id="lastName" name="lastName" class="form-control" ng-model="vm.user.lastName"
placeholder="{{ 'STATUS_FIELD.LAST_NAME' | translate}}"
required>
<div ng-messages="vm.userForm.lastName.$error" role="alert">
<p class="help-block error-text" ng-message="required">{{ 'SIGN.LN_REQUIRED' | translate}}</p>
<p class="help-block error-text" ng-message="required">{{ 'SIGN.DN_REQUIRED' | translate}}</p>
</div>
</div>
<div class="form-group" show-errors>