60 lines
1.6 KiB
Handlebars
60 lines
1.6 KiB
Handlebars
|
|
{{#if confirmation}}
|
|
{{#d-modal closeModal=(action "closeModal") modalStyle="inline-modal" title=(i18n "discourse_patrons.confirm")}}
|
|
{{#d-modal-body}}
|
|
<table class="discourse-donations-confirmation">
|
|
<tr>
|
|
<td>Amount</td>
|
|
<td class="discourse-donations-amount">{{amount}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Card</td>
|
|
<td class="discourse-donations-last4">.... .... .... {{last4}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{/d-modal-body}}
|
|
|
|
<div class='modal-footer'>
|
|
{{#d-button action="confirmStripeCard" class="btn btn-primary btn-payment"}}
|
|
{{i18n 'discourse_patrons.submit'}} {{amount}}
|
|
{{/d-button}}
|
|
</div>
|
|
|
|
{{/d-modal}}
|
|
|
|
{{#if paymentError}}
|
|
<div class="popup-tip bad">
|
|
{{paymentError}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
<div class="discourse-patrons-section-columns">
|
|
<div class="section-column">
|
|
<h3>{{i18n 'discourse_patrons.your_information'}}</h3>
|
|
|
|
<div class="user-controls">
|
|
<div class="display-row">
|
|
<div class="field">
|
|
{{i18n 'discourse_patrons.amount'}}
|
|
{{siteSettings.discourse_patrons_currency}}
|
|
</div>
|
|
<div class="value">
|
|
{{combo-box valueAttribute="value" content=amounts value=amount}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section-column">
|
|
<div style>
|
|
{{stripe-card
|
|
amount=amount
|
|
currency=currency
|
|
handleConfirmStripeCard=(action "handleConfirmStripeCard")
|
|
}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|