discourse-subscriptions/assets/javascripts/discourse/templates/components/donation-form.hbs

60 lines
1.6 KiB
Handlebars
Raw Normal View History

2019-09-11 06:19:50 -04:00
{{#if confirmation}}
2019-09-11 21:21:27 -04:00
{{#d-modal closeModal=(action "closeModal") modalStyle="inline-modal" title=(i18n "discourse_patrons.confirm")}}
2019-09-11 06:19:50 -04:00
{{#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"}}
2019-09-11 21:21:27 -04:00
{{i18n 'discourse_patrons.submit'}} {{amount}}
2019-09-11 06:19:50 -04:00
{{/d-button}}
</div>
{{/d-modal}}
{{#if paymentError}}
<div class="popup-tip bad">
{{paymentError}}
</div>
{{/if}}
{{else}}
2019-09-11 06:37:23 -04:00
<div class="discourse-patrons-section-columns">
2019-09-11 06:19:50 -04:00
<div class="section-column">
2019-09-11 21:21:27 -04:00
<h3>{{i18n 'discourse_patrons.your_information'}}</h3>
2019-09-11 06:19:50 -04:00
<div class="user-controls">
<div class="display-row">
2019-09-11 21:21:27 -04:00
<div class="field">
{{i18n 'discourse_patrons.amount'}}
{{siteSettings.discourse_patrons_currency}}
</div>
2019-09-11 06:19:50 -04:00
<div class="value">
2019-09-11 21:21:27 -04:00
{{combo-box valueAttribute="value" content=amounts value=amount}}
2019-09-11 06:19:50 -04:00
</div>
</div>
</div>
</div>
<div class="section-column">
<div style>
{{stripe-card
amount=amount
currency=currency
handleConfirmStripeCard=(action "handleConfirmStripeCard")
}}
</div>
</div>
</div>
{{/if}}