1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-29 07:59:42 +01:00
bitwarden-browser/src/app/accounts/login.component.html

45 lines
2.3 KiB
HTML
Raw Normal View History

2018-02-01 04:35:44 +01:00
<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
2018-01-31 20:19:21 +01:00
<div class="content">
2018-05-31 04:28:04 +02:00
<img class="logo-image" alt="Bitwarden">
2018-02-02 04:59:04 +01:00
<p class="lead">{{'loginOrCreateNewAccount' | i18n}}</p>
2018-01-31 20:19:21 +01:00
<div class="box last">
<div class="box-content">
<div class="box-content-row" appBoxRow>
<label for="email">{{'emailAddress' | i18n}}</label>
2018-07-13 15:29:05 +02:00
<input id="email" type="text" name="Email" [(ngModel)]="email" required>
2018-01-31 20:19:21 +01:00
</div>
<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"
2018-07-13 15:29:05 +02:00
class="monospaced" [(ngModel)]="masterPassword" required>
</div>
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick appBlurClick
title="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
<i class="fa fa-lg"
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</a>
</div>
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>
2018-05-31 04:28:04 +02:00
<b [hidden]="form.loading"><i class="fa fa-sign-in"></i> {{'logIn' | i18n}}</b>
2018-01-31 20:19:21 +01:00
<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">
2018-01-31 23:06:14 +01:00
<a routerLink="/hint">{{'getMasterPasswordHint' | i18n}}</a>
2018-01-31 20:19:21 +01:00
</div>
2018-02-02 18:31:21 +01:00
<a href="#" appStopClick (click)="settings()" class="settings-icon">
2018-01-31 20:19:21 +01:00
<i class="fa fa-cog fa-lg"></i><span>&nbsp;{{'settings' | i18n}}</span>
</a>
</div>
</form>
2018-02-02 18:31:21 +01:00
<ng-template #environment></ng-template>