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">×</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"
|
2023-04-26 12:16:07 +02:00
|
|
|
name="StorageGbAdjustment"
|
2019-02-21 22:50:37 +01:00
|
|
|
[(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 ×
|
2023-03-21 11:28:15 +01:00
|
|
|
{{ 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">
|
2022-01-27 18:25:58 +01:00
|
|
|
<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>
|
2019-08-10 19:00:07 +02:00
|
|
|
<app-payment [showMethods]="false"></app-payment>
|