bitwarden-desktop/src/app/accounts/register.component.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

151 lines
5.1 KiB
HTML
Raw Normal View History

2018-02-01 04:35:44 +01:00
<form id="register-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
2018-01-31 20:19:21 +01:00
<div class="content">
2018-01-31 23:06:14 +01:00
<h1>{{ "createAccount" | i18n }}</h1>
2018-01-31 20:19:21 +01:00
<div class="box">
<div class="box-content">
<div class="box-content-row" appBoxRow>
<label for="email">{{ "emailAddress" | i18n }}</label>
<input
id="email"
type="text"
2019-02-21 22:53:32 +01:00
name="Email"
[(ngModel)]="email"
required
[appAutofocus]="email === ''"
appInputVerbatim
2018-01-31 20:19:21 +01:00
/>
</div>
<div class="box-content-row" appBoxRow>
<div class="box-content-row-flex">
<div class="row-main">
<label for="masterPassword">
{{ "masterPass" | i18n }}
2021-12-20 15:47:17 +01:00
<strong
class="sub-label text-{{ masterPasswordScoreColor }}"
*ngIf="masterPasswordScoreText"
2021-12-20 15:47:17 +01:00
>
{{ masterPasswordScoreText }}
</strong>
</label>
<input
id="masterPassword"
type="{{ showPassword ? 'text' : 'password' }}"
name="MasterPassword"
2019-04-03 06:04:42 +02:00
class="monospaced"
[(ngModel)]="masterPassword"
required
2019-04-02 04:43:42 +02:00
[appAutofocus]="email !== ''"
(input)="updatePasswordStrength()"
2018-01-31 20:19:21 +01:00
appInputVerbatim
/>
2018-01-31 20:19:21 +01:00
</div>
<div class="action-buttons">
2021-12-20 15:47:17 +01:00
<a
2018-01-31 20:19:21 +01:00
class="row-btn"
2021-12-20 15:47:17 +01:00
href="#"
2018-01-31 20:19:21 +01:00
appStopClick
2019-04-03 06:04:42 +02:00
appBlurClick
role="button"
2018-01-31 20:19:21 +01:00
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
(click)="togglePassword(false)"
2021-12-20 15:47:17 +01:00
>
<i
class="bwi bwi-lg"
2018-01-31 20:19:21 +01:00
aria-hidden="true"
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
2021-12-20 15:47:17 +01:00
></i>
</a>
2018-01-31 20:19:21 +01:00
</div>
2021-12-20 15:47:17 +01:00
</div>
<div class="progress">
2021-12-20 15:47:17 +01:00
<div
class="progress-bar bg-{{ masterPasswordScoreColor }}"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
[ngStyle]="{ width: masterPasswordScoreWidth + '%' }"
attr.aria-valuenow="{{ masterPasswordScoreWidth }}"
2021-12-20 15:47:17 +01:00
></div>
</div>
2018-01-31 20:19:21 +01:00
</div>
</div>
<div class="box-footer">
2018-01-31 20:19:21 +01:00
{{ "masterPassDesc" | i18n }}
2021-12-20 15:47:17 +01:00
</div>
</div>
<div class="box">
<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"
2021-12-20 15:47:17 +01:00
required
appInputVerbatim
2021-12-20 15:47:17 +01:00
/>
</div>
<div class="action-buttons">
<a
class="row-btn"
href="#"
appStopClick
appBlurClick
role="button"
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
(click)="togglePassword(true)"
2021-12-20 15:47:17 +01:00
>
<i
class="bwi bwi-lg"
aria-hidden="true"
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
2021-12-20 15:47:17 +01:00
></i>
</a>
</div>
</div>
2018-01-31 20:19:21 +01:00
<div class="box-content-row" appBoxRow>
<label for="hint">{{ "masterPassHint" | i18n }}</label>
<input id="hint" type="text" name="Hint" [(ngModel)]="hint" />
</div>
<div class="box-content-row" [hidden]="!showCaptcha()">
<iframe id="hcaptcha_iframe" height="80"></iframe>
2021-12-20 15:47:17 +01:00
</div>
</div>
2018-01-31 20:19:21 +01:00
<div class="box-footer">
{{ "masterPassHintDesc" | i18n }}
2021-12-20 15:47:17 +01:00
</div>
</div>
<div class="box last" *ngIf="showTerms">
2018-01-31 20:19:21 +01:00
<div class="box-footer checkbox">
2021-12-20 15:47:17 +01:00
<input
type="checkbox"
id="acceptPolicies"
[(ngModel)]="acceptPolicies"
name="AcceptPolicies"
2021-12-20 15:47:17 +01:00
/>
<label for="acceptPolicies">
{{ "acceptPolicies" | i18n }}<br />
<a href="https://bitwarden.com/terms/" target="_blank" rel="noopener">{{
"termsOfService" | i18n
2021-12-20 15:47:17 +01:00
}}</a
>,
<a href="https://bitwarden.com/privacy/" target="_blank" rel="noopener">{{
"privacyPolicy" | i18n
2021-12-20 15:47:17 +01:00
}}</a>
</label>
</div>
</div>
2018-01-31 20:19:21 +01:00
<div class="buttons">
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
2018-02-20 22:47:35 +01:00
<b [hidden]="form.loading">{{ "submit" | i18n }}</b>
<i class="bwi bwi-spinner bwi-spin" [hidden]="!form.loading" aria-hidden="true"></i>
2018-01-31 20:19:21 +01:00
</button>
<a routerLink="/login" class="btn block">{{ "cancel" | i18n }}</a>
</div>
2021-12-20 15:47:17 +01:00
</div>
2018-01-31 20:19:21 +01:00
</form>