mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 09:27:10 +02:00
feat(users): use displayName alternative first name and last name
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user