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

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

70 lines
2.1 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>
2018-06-21 17:43:50 +02:00
<div class="form-group" *ngIf="!hidePasswordHint">
2019-02-21 22:50:37 +01:00
<label for="masterPasswordHint">{{ "masterPassHintLabel" | i18n }}</label>
2018-11-15 05:13:50 +01:00
<input
2019-02-21 22:50:37 +01:00
id="masterPasswordHint"
2019-10-11 16:35:24 +02:00
class="form-control"
type="text"
name="MasterPasswordHint"
2018-11-15 05:13:50 +01:00
[(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>
2021-12-17 15:57:11 +01:00
</div>
<hr />
2018-11-15 05:13:50 +01:00
<p *ngIf="fingerprint">
{{ "yourAccountsFingerprint" | i18n }}:
2021-12-17 15:57:11 +01:00
<a
2019-02-21 22:50:37 +01:00
href="https://help.bitwarden.com/article/fingerprint-phrase/"
target="_blank"
rel="noopener"
2019-10-11 16:35:24 +02:00
appA11yTitle="{{ 'learnMore' | i18n }}"
2021-12-17 15:57:11 +01:00
>
2019-10-11 16:35:24 +02:00
<i class="fa fa-question-circle-o" aria-hidden="true"></i></a
2021-12-17 15:57:11 +01:00
><br />
2018-11-15 05:13:50 +01:00
<code>{{ fingerprint }}</code>
2021-12-17 15:57:11 +01:00
</p>
</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>