2018-01-31 20:19:21 +01:00
|
|
|
<form id="login" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<div class="content">
|
|
|
|
<img src="../../images/logo@2x.png" alt="bitwarden">
|
|
|
|
<p>{{'loginOrCreateNewAccount' | i18n}}</p>
|
|
|
|
<div class="box last">
|
|
|
|
<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 === ''">
|
|
|
|
</div>
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
|
|
|
<input id="masterPassword" type="password" name="MasterPassword" [(ngModel)]="masterPassword"
|
|
|
|
required [appAutofocus]="email !== ''">
|
2018-01-30 23:24:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
|
|
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
|
|
|
|
<span [hidden]="form.loading"><i class="fa fa-sign-in"></i> {{'logIn' | i18n}}</span>
|
|
|
|
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading"></i>
|
|
|
|
</button>
|
|
|
|
<a routerLink="/register" class="btn block">
|
|
|
|
<i class="fa fa-pencil-square-o"></i> {{'createAccount' | i18n}}
|
2018-01-30 23:24:02 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="sub-options">
|
|
|
|
<a href="#">{{'getMasterPasswordHint' | i18n}}</a>
|
|
|
|
</div>
|
|
|
|
<a href="#" class="settings-icon">
|
|
|
|
<i class="fa fa-cog fa-lg"></i><span> {{'settings' | i18n}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</form>
|