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

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

217 lines
8.8 KiB
HTML
Raw Normal View History

<div class="layout" [ngClass]="['layout', layout]">
<header class="header" *ngIf="layout === 'enterprise2'">
<div class="container">
<div class="row">
<div class="col-7">
<img
alt="Bitwarden"
class="logo mb-2"
src="../../images/register-layout/logo-horizontal-white.png"
/>
</div>
2021-12-17 15:57:11 +01:00
</div>
</div>
</header>
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
<div class="row">
<div class="col-7" *ngIf="layout">
<div class="mt-5">
<div *ngIf="layout === 'enterprise2'">
<h2>Companies globally trust Bitwarden for password management.</h2>
<p>Start your 7-day free trial!</p>
<p class="highlight">Quickly deploy your <b>organization</b></p>
<p>Use Bitwarden across all platforms</p>
<p>Collaborate and share securely</p>
<figure>
<figcaption>
<cite>
<img src="../../images/register-layout/wired-logo.png" alt="Wired" />
2021-12-17 15:57:11 +01:00
</cite>
</figcaption>
<blockquote>
"Bitwarden has become a popular choice among open-source software advocates. After
using it for a few months, I can see why." - February 2020
</blockquote>
</figure>
2021-12-17 15:57:11 +01:00
</div>
<div *ngIf="layout === 'enterprise3'">
<p>Enterprise 3 layout</p>
2021-12-17 15:57:11 +01:00
</div>
<div *ngIf="layout === 'enterprise4'">
<p>Enterprise 4 layout</p>
2021-12-17 15:57:11 +01:00
</div>
</div>
</div>
<div [ngClass]="{ 'col-5': layout, 'col-12': !layout }">
<div class="row justify-content-md-center mt-5">
<div [ngClass]="{ 'col-5': !layout, 'col-12': layout }">
<p class="lead text-center mb-4" *ngIf="!layout">{{ "createAccount" | i18n }}</p>
<div class="card d-block">
<div class="card-body">
<app-callout
title="{{ 'createOrganizationStep1' | i18n }}"
type="info"
icon="bwi bwi-thumb-tack"
*ngIf="showCreateOrgMessage"
2021-12-17 15:57:11 +01:00
>
{{ "createOrganizationCreatePersonalAccount" | i18n }}
</app-callout>
<div class="form-group">
<label for="email">{{ "emailAddress" | i18n }}</label>
2021-12-17 15:57:11 +01:00
<input
id="email"
class="form-control"
type="text"
name="Email"
[(ngModel)]="email"
2021-12-17 15:57:11 +01:00
required
[appAutofocus]="email === ''"
inputmode="email"
appInputVerbatim="false"
2021-12-17 15:57:11 +01:00
/>
<small class="form-text text-muted">{{ "emailAddressDesc" | i18n }}</small>
2021-12-17 15:57:11 +01:00
</div>
<div class="form-group">
<label for="name">{{ "yourName" | i18n }}</label>
2021-12-17 15:57:11 +01:00
<input
id="name"
class="form-control"
type="text"
name="Name"
[(ngModel)]="name"
[appAutofocus]="email !== ''"
2021-12-17 15:57:11 +01:00
/>
<small class="form-text text-muted">{{ "yourNameDesc" | i18n }}</small>
2021-12-17 15:57:11 +01:00
</div>
<div class="form-group">
<app-callout
type="info"
[enforcedPolicyOptions]="enforcedPolicyOptions"
*ngIf="enforcedPolicyOptions"
2021-12-17 15:57:11 +01:00
>
</app-callout>
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
<div class="d-flex">
<div class="w-100">
2021-12-17 15:57:11 +01:00
<input
id="masterPassword"
type="{{ showPassword ? 'text' : 'password' }}"
name="MasterPassword"
class="text-monospace form-control mb-1"
[(ngModel)]="masterPassword"
(input)="updatePasswordStrength()"
2021-12-17 15:57:11 +01:00
required
appInputVerbatim
2021-12-17 15:57:11 +01:00
/>
<app-password-strength [score]="masterPasswordScore" [showText]="true">
</app-password-strength>
</div>
2021-12-17 15:57:11 +01:00
<div>
<button
type="button"
class="ml-1 btn btn-link"
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
(click)="togglePassword(false)"
2021-12-17 15:57:11 +01:00
>
<i
class="bwi bwi-lg"
aria-hidden="true"
[ngClass]="{
'bwi-eye': !showPassword,
'bwi-eye-slash': showPassword
2021-12-17 15:57:11 +01:00
}"
></i>
</button>
<div class="progress-bar invisible"></div>
</div>
2021-12-17 15:57:11 +01:00
</div>
<small class="form-text text-muted">{{ "masterPassDesc" | i18n }}</small>
</div>
<div class="form-group">
<label for="masterPasswordRetype">{{ "reTypeMasterPass" | i18n }}</label>
<div class="d-flex">
<input
id="masterPasswordRetype"
type="{{ showPassword ? 'text' : 'password' }}"
name="MasterPasswordRetype"
class="text-monospace form-control"
[(ngModel)]="confirmMasterPassword"
2021-12-17 15:57:11 +01:00
required
appInputVerbatim
2021-12-17 15:57:11 +01:00
/>
<button
type="button"
class="ml-1 btn btn-link"
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
(click)="togglePassword(true)"
>
<i
class="bwi bwi-lg"
aria-hidden="true"
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
2021-12-17 15:57:11 +01:00
></i>
</button>
</div>
2021-12-17 15:57:11 +01:00
</div>
<div class="form-group">
<label for="hint">{{ "masterPassHint" | i18n }}</label>
<input
id="hint"
class="form-control"
type="text"
name="Hint"
[(ngModel)]="hint"
/>
<small class="form-text text-muted">{{ "masterPassHintDesc" | i18n }}</small>
2021-12-17 15:57:11 +01:00
</div>
<div [hidden]="!showCaptcha()">
<iframe id="hcaptcha_iframe" height="80"></iframe>
</div>
<div class="form-group" *ngIf="showTerms">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
id="acceptPolicies"
[(ngModel)]="acceptPolicies"
name="AcceptPolicies"
/>
<label class="form-check-label small text-muted" for="acceptPolicies">
{{ "acceptPolicies" | i18n }}<br />
<a href="https://bitwarden.com/terms/" target="_blank" rel="noopener">{{
"termsOfService" | i18n
}}</a
>,
<a href="https://bitwarden.com/privacy/" target="_blank" rel="noopener">{{
"privacyPolicy" | i18n
}}</a>
</label>
2021-12-17 15:57:11 +01:00
</div>
</div>
<hr />
<div class="d-flex mb-2">
<button
type="submit"
class="btn btn-primary btn-block btn-submit"
[disabled]="form.loading"
>
<span>{{ "submit" | i18n }}</span>
<i
class="bwi bwi-spinner bwi-spin"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
</button>
<a routerLink="/" class="btn btn-outline-secondary btn-block ml-2 mt-0">
{{ "cancel" | i18n }}
</a>
2018-06-05 21:02:53 +02:00
</div>
2021-12-17 15:57:11 +01:00
</div>
2018-06-05 21:02:53 +02:00
</div>
2021-12-17 15:57:11 +01:00
</div>
2018-06-05 21:02:53 +02:00
</div>
2021-12-17 15:57:11 +01:00
</div>
</div>
</form>
</div>