2018-04-04 20:19:44 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<header>
|
|
|
|
<div class="left">
|
2018-04-05 04:59:42 +02:00
|
|
|
<a routerLink="/home">{{'cancel' | i18n}}</a>
|
2018-04-04 20:19:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="center">
|
|
|
|
<span class="title">{{'createAccount' | i18n}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<button type="submit" appBlurClick [disabled]="form.loading">
|
|
|
|
<span [hidden]="form.loading">{{'submit' | i18n}}</span>
|
|
|
|
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</header>
|
2018-04-05 16:29:11 +02:00
|
|
|
<content>
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="email">{{'emailAddress' | i18n}}</label>
|
|
|
|
<input id="email" type="text" name="Email" [(ngModel)]="email" required
|
|
|
|
[appAutofocus]="email === ''">
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
|
|
|
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword"
|
|
|
|
class="monospaced" [(ngModel)]="masterPassword" required [appAutofocus]="email !== ''">
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
|
|
|
title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(false)">
|
|
|
|
<i class="fa fa-lg"
|
|
|
|
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box-footer">
|
|
|
|
{{'masterPassDesc' | i18n}}
|
|
|
|
</div>
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box last">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPasswordRetype">{{'reTypeMasterPass' | i18n}}</label>
|
|
|
|
<input id="masterPasswordRetype" type="{{showPassword ? 'text' : 'password'}}"
|
|
|
|
name="MasterPasswordRetype" class="monospaced" [(ngModel)]="confirmMasterPassword"
|
|
|
|
required>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
|
|
|
title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(true)">
|
|
|
|
<i class="fa fa-lg"
|
|
|
|
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="hint">{{'masterPassHint' | i18n}}</label>
|
|
|
|
<input id="hint" type="text" name="Hint" [(ngModel)]="hint">
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box-footer">
|
|
|
|
{{'masterPassHintDesc' | i18n}}
|
2018-04-04 16:08:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
</content>
|
2018-04-04 16:08:30 +02:00
|
|
|
</form>
|