bitwarden-estensione-browser/src/app/settings/add-credit.component.html

56 lines
3.1 KiB
HTML
Raw Normal View History

2019-02-20 23:33:05 +01:00
<form #form class="card" (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
<div class="card-body">
<h3 class="card-body-header">{{'addCredit' | i18n}}</h3>
<div class="mb-4 text-lg" *ngIf="showOptions">
<div class="form-check form-check-inline">
2019-02-21 22:50:37 +01:00
<input class="form-check-input" type="radio" name="Method" id="credit-method-paypal"
2019-02-22 04:48:59 +01:00
[value]="paymentMethodType.PayPal" [(ngModel)]="method">
2019-02-20 23:33:05 +01:00
<label class="form-check-label" for="credit-method-paypal">
<i class="fa fa-fw fa-paypal"></i> PayPal</label>
</div>
<div class="form-check form-check-inline">
2019-02-22 04:48:59 +01:00
<input class="form-check-input" type="radio" name="Method" id="credit-method-bitcoin"
[value]="paymentMethodType.BitPay" [(ngModel)]="method">
2019-02-20 23:33:05 +01:00
<label class="form-check-label" for="credit-method-bitcoin">
<i class="fa fa-fw fa-bitcoin"></i> Bitcoin</label>
</div>
</div>
2019-02-21 02:37:27 +01:00
<div class="form-group">
<div class="row">
<div class="col-4">
<label for="creditAmount">{{'amount' | i18n}}</label>
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">$USD</span></div>
2019-02-21 22:50:37 +01:00
<input id="creditAmount" class="form-control" type="text" name="CreditAmount"
[(ngModel)]="creditAmount" (blur)="formatAmount()" required>
2019-02-21 02:37:27 +01:00
</div>
2019-02-20 23:33:05 +01:00
</div>
</div>
2019-02-21 02:37:27 +01:00
<small class="form-text text-muted">{{'creditDelayed' | i18n}}</small>
2019-02-20 23:33:05 +01:00
</div>
2019-02-21 02:37:27 +01:00
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading || ppLoading">
2019-02-20 23:33:05 +01:00
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"></i>
<span>{{'submit' | i18n}}</span>
</button>
<button type="button" class="btn btn-outline-secondary" (click)="cancel()">
{{'cancel' | i18n}}
</button>
</div>
</form>
<form #ppButtonForm action="{{ppButtonFormAction}}" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="{{ppButtonBusinessId}}">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
2019-02-22 04:48:59 +01:00
<input type="hidden" name="return" value="{{returnUrl}}">
<input type="hidden" name="cancel_return" value="{{returnUrl}}">
2019-02-20 23:33:05 +01:00
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<input type="hidden" name="amount" value="{{creditAmount}}">
<input type="hidden" name="custom" value="{{ppButtonCustomField}}">
2019-02-22 04:48:59 +01:00
<input type="hidden" name="item_name" value="Bitwarden Account Credit">
2019-02-20 23:33:05 +01:00
<input type="hidden" name="item_number" value="{{subject}}">
</form>