bitwarden-estensione-browser/apps/web/src/app/settings/adjust-storage.component.html

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

44 lines
1.6 KiB
HTML
Raw Normal View History

2018-06-30 05:41:35 +02:00
<form #form class="card" (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
<div class="card-body">
2019-10-11 16:35:24 +02:00
<button type="button" class="close" appA11yTitle="{{ 'cancel' | i18n }}" (click)="cancel()">
<span aria-hidden="true">&times;</span>
</button>
2018-06-30 19:36:39 +02:00
<h3 class="card-body-header">{{ (add ? "addStorage" : "removeStorage") | i18n }}</h3>
2018-06-30 05:41:35 +02:00
<div class="row">
<div class="form-group col-6">
<label for="storageAdjustment">{{
(add ? "gbStorageAdd" : "gbStorageRemove") | i18n
}}</label>
2019-02-21 22:50:37 +01:00
<input
id="storageAdjustment"
class="form-control"
type="number"
name="StroageGbAdjustment"
[(ngModel)]="storageAdjustment"
2018-06-30 05:41:35 +02:00
min="0"
max="99"
2019-02-21 22:50:37 +01:00
step="1"
2018-06-30 05:41:35 +02:00
required
/>
</div>
</div>
<div *ngIf="add" class="mb-3">
2019-02-21 22:50:37 +01:00
<strong>{{ "total" | i18n }}:</strong> {{ storageAdjustment || 0 }} GB &times;
{{ storageGbPrice | currency: "$" }} = {{ adjustedStorageTotal | currency: "$" }} /{{
2018-06-30 05:41:35 +02:00
interval | i18n
2021-12-17 15:57:11 +01:00
}}
</div>
2018-06-30 05:41:35 +02:00
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
2018-06-30 05:41:35 +02:00
<span>{{ "submit" | i18n }}</span>
</button>
<button type="button" class="btn btn-outline-secondary" (click)="cancel()">
{{ "cancel" | i18n }}
</button>
<small class="d-block text-muted mt-3">
{{ (add ? "storageAddNote" : "storageRemoveNote") | i18n }}
2021-12-17 15:57:11 +01:00
</small>
</div>
2018-06-30 05:41:35 +02:00
</form>
<app-payment [showMethods]="false"></app-payment>