bitwarden-estensione-browser/src/app/settings/profile.component.html

42 lines
2.0 KiB
HTML
Raw Normal View History

2018-06-21 17:43:50 +02:00
<div *ngIf="loading">
2019-10-11 16:35:24 +02:00
<i class="fa fa-spinner fa-spin text-muted" title="{{'loading' | i18n}}" aria-hidden="true"></i>
<span class="sr-only">{{'loading' | i18n}}</span>
2018-06-21 17:43:50 +02:00
</div>
<form *ngIf="profile && !loading" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
2018-06-21 17:43:50 +02:00
<div class="row">
<div class="col-6">
<div class="form-group">
<label for="name">{{'name' | i18n}}</label>
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="profile.name">
</div>
<div class="form-group">
<label for="email">{{'email' | i18n}}</label>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="profile.email" readonly>
</div>
<div class="form-group">
<label for="masterPasswordHint">{{'masterPassHintLabel' | i18n}}</label>
2019-02-21 22:50:37 +01:00
<input id="masterPasswordHint" class="form-control" type="text" name="MasterPasswordHint"
[(ngModel)]="profile.masterPasswordHint">
2018-06-21 17:43:50 +02:00
</div>
</div>
<div class="col-6">
2018-11-15 05:13:50 +01:00
<div class="mb-3">
2021-07-19 10:47:34 +02:00
<app-avatar data="{{profile | userName}}" [email]="profile.email" dynamic="true" size="75"
2018-11-15 05:13:50 +01:00
fontSize="35"></app-avatar>
</div>
<hr>
<p *ngIf="fingerprint">
{{'yourAccountsFingerprint' | i18n}}:
2019-02-21 22:50:37 +01:00
<a href="https://help.bitwarden.com/article/fingerprint-phrase/" target="_blank" rel="noopener"
2019-10-11 16:35:24 +02:00
appA11yTitle="{{'learnMore' | i18n}}">
<i class="fa fa-question-circle-o" aria-hidden="true"></i></a><br>
2018-11-15 05:13:50 +01:00
<code>{{fingerprint}}</code>
</p>
2018-06-21 17:43:50 +02:00
</div>
</div>
2018-07-18 05:15:15 +02:00
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
2019-10-11 16:35:24 +02:00
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
2018-06-21 17:43:50 +02:00
<span>{{'save' | i18n}}</span>
</button>
</form>