add name to registration form

This commit is contained in:
Kyle Spearrin 2018-07-03 11:42:50 -04:00
parent ae51847f02
commit 1e7c2c2362
3 changed files with 17 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 269b59210cba1114ff75519c9d0b391406f94bd3
Subproject commit 3454d93fef76f84c7351990089f7b155b88580f8

View File

@ -8,12 +8,18 @@
<label for="email">{{'emailAddress' | i18n}}</label>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required [appAutofocus]="email === ''"
inputmode="email" appInputVerbatim="false">
<small class="form-text text-muted">{{'emailAddressDesc' | i18n}}</small>
</div>
<div class="form-group">
<label for="name">{{'yourName' | i18n}}</label>
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" [appAutofocus]="email !== ''">
<small class="form-text text-muted">{{'yourNameDesc' | i18n}}</small>
</div>
<div class="form-group">
<label for="masterPassword">{{'masterPass' | i18n}}</label>
<div class="d-flex">
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword" class="text-monospace form-control"
[(ngModel)]="masterPassword" required [appAutofocus]="email !== ''" appInputVerbatim>
[(ngModel)]="masterPassword" required appInputVerbatim>
<button type="button" class="ml-1 btn btn-link" appBlurClick title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(false)">
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</button>

View File

@ -494,6 +494,15 @@
"submit": {
"message": "Submit"
},
"emailAddressDesc": {
"message": "You'll use your email address to log in."
},
"yourName": {
"message": "Your Name"
},
"yourNameDesc": {
"message": "What should we call you?"
},
"masterPass": {
"message": "Master Password"
},