bitwarden-estensione-browser/src/app/accounts/login.component.html

46 lines
2.5 KiB
HTML
Raw Normal View History

<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise" attr.aria-hidden="{{showingModal}}">
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"
2019-02-21 22:53:32 +01:00
class="monospaced" [(ngModel)]="masterPassword" required>
</div>
<div class="action-buttons">
2019-04-02 04:43:42 +02:00
<a class="row-btn" href="#" appStopClick appBlurClick
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
2019-04-02 04:56:28 +02:00
<i class="fa fa-lg" aria-hidden="true"
[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>
2019-04-02 05:08:54 +02:00
<b [hidden]="form.loading"><i class="fa fa-sign-in" aria-hidden="true"></i> {{'logIn' | i18n}}</b>
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading" aria-hidden="true"></i>
2018-01-31 20:19:21 +01:00
</button>
<a routerLink="/register" class="btn block">
2019-04-02 05:08:54 +02:00
<i class="fa fa-pencil-square-o" aria-hidden="true"></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>
<a href="#" appStopClick (click)="settings()" class="settings-icon" attr.aria-label="{{'settings' | i18n}}">
<i class="fa fa-cog fa-lg" aria-hidden="true"></i><span
aria-hidden="true">&nbsp;{{'settings' | i18n}}</span>
2018-01-31 20:19:21 +01:00
</a>
</div>
</form>
2018-02-02 18:31:21 +01:00
<ng-template #environment></ng-template>