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

70 lines
4.7 KiB
HTML
Raw Normal View History

<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
2018-06-09 06:38:55 +02:00
<div class="row justify-content-md-center mt-5">
<div class="col-5">
<p class="lead text-center mb-4">{{'createAccount' | i18n}}</p>
2018-07-25 18:13:18 +02:00
<div class="card d-block">
2018-06-09 06:38:55 +02:00
<div class="card-body">
<app-callout title="{{'createOrganizationStep1' | i18n}}" type="info" icon="fa-thumb-tack" *ngIf="showCreateOrgMessage">
{{'createOrganizationCreatePersonalAccount' | i18n}}
</app-callout>
2018-06-09 06:38:55 +02:00
<div class="form-group">
<label for="email">{{'emailAddress' | i18n}}</label>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required [appAutofocus]="email === ''"
inputmode="email" appInputVerbatim="false">
2018-07-03 17:42:50 +02:00
<small class="form-text text-muted">{{'emailAddressDesc' | i18n}}</small>
</div>
<div class="form-group">
<label for="name">{{'yourName' | i18n}}</label>
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" [appAutofocus]="email !== ''">
<small class="form-text text-muted">{{'yourNameDesc' | i18n}}</small>
2018-06-05 21:02:53 +02:00
</div>
2018-06-09 06:38:55 +02:00
<div class="form-group">
<label for="masterPassword">{{'masterPass' | i18n}}</label>
<div class="d-flex">
<div class="w-100">
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword" class="text-monospace form-control mb-1"
[(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required appInputVerbatim>
<app-password-strength [score]="masterPasswordScore" [showText]="true"></app-password-strength>
</div>
2018-07-18 05:21:23 +02:00
<button type="button" class="ml-1 btn btn-link" title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(false)">
2018-06-09 06:38:55 +02:00
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</button>
</div>
<small class="form-text text-muted">{{'masterPassDesc' | i18n}}</small>
2018-06-05 21:02:53 +02:00
</div>
2018-06-09 06:38:55 +02:00
<div class="form-group">
2018-06-05 21:02:53 +02:00
<label for="masterPasswordRetype">{{'reTypeMasterPass' | i18n}}</label>
2018-06-09 06:38:55 +02:00
<div class="d-flex">
<input id="masterPasswordRetype" type="{{showPassword ? 'text' : 'password'}}" name="MasterPasswordRetype" class="text-monospace form-control"
[(ngModel)]="confirmMasterPassword" required appInputVerbatim>
2018-07-18 05:21:23 +02:00
<button type="button" class="ml-1 btn btn-link" title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(true)">
2018-06-09 06:38:55 +02:00
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</button>
</div>
2018-06-05 21:02:53 +02:00
</div>
2018-06-09 06:38:55 +02:00
<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>
</div>
<hr>
2018-07-23 22:37:10 +02:00
<div class="d-flex mb-2">
2018-07-18 05:15:15 +02:00
<button type="submit" class="btn btn-primary btn-block btn-submit" [disabled]="form.loading">
<span>{{'submit' | i18n}}</span>
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"></i>
2018-06-09 06:38:55 +02:00
</button>
2018-06-10 04:02:45 +02:00
<a routerLink="/" class="btn btn-outline-secondary btn-block ml-2 mt-0">
2018-06-09 06:38:55 +02:00
{{'cancel' | i18n}}
2018-06-05 21:02:53 +02:00
</a>
</div>
2018-07-25 19:59:55 +02:00
<small class="text-muted" *ngIf="showTerms">
2018-07-23 22:37:10 +02:00
{{'submitAgreePolicies' | i18n}}
<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>
</small>
2018-06-05 21:02:53 +02:00
</div>
</div>
</div>
2018-06-09 06:38:55 +02:00
</div>
2018-06-05 21:02:53 +02:00
</form>