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

87 lines
2.4 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}}
2019-09-11 23:46:30 -04:00
<table class="discourse-patrons-confirmation">
2019-09-11 06:19:50 -04:00
<tr>
2019-09-11 23:46:30 -04:00
<td>{{i18n 'discourse_patrons.confirmation.amount'}}</td>
2019-09-11 06:19:50 -04:00
<td class="discourse-donations-amount">{{amount}}</td>
</tr>
<tr>
2019-09-11 23:46:30 -04:00
<td>{{i18n 'discourse_patrons.confirmation.last4'}}</td>
<td class="discourse-patrons-last4">.... .... .... {{last4}}</td>
2019-09-11 06:19:50 -04:00
</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>
2019-09-12 01:13:08 -04:00
<div class="display-row">
<div class="field">
{{i18n 'discourse_patrons.billing.name'}}
</div>
<div class="value">
{{input value=billing.name}}
</div>
</div>
<div class="display-row">
<div class="field">
{{i18n 'discourse_patrons.billing.email'}}
</div>
<div class="value">
{{input value=billing.email}}
</div>
</div>
<div class="display-row">
<div class="field">
{{i18n 'discourse_patrons.billing.phone'}}
</div>
<div class="value">
{{input value=billing.phone}}
</div>
</div>
2019-09-11 06:19:50 -04:00
</div>
2019-09-12 01:13:08 -04:00
2019-09-11 06:19:50 -04:00
</div>
<div class="section-column">
<div style>
{{stripe-card
amount=amount
currency=currency
2019-09-12 01:13:08 -04:00
billing=billing
2019-09-11 06:19:50 -04:00
handleConfirmStripeCard=(action "handleConfirmStripeCard")
}}
</div>
</div>
</div>
{{/if}}