discourse-subscriptions/assets/javascripts/discourse/templates/s/show.hbs

51 lines
1.1 KiB
Handlebars
Raw Normal View History

2019-11-04 00:37:21 -05:00
2019-12-15 21:59:58 -05:00
<div class="discourse-subscriptions-section-columns">
2019-12-17 16:47:01 -05:00
<div class="section-column discourse-subscriptions-confirmation-billing">
2019-11-04 00:37:21 -05:00
<h2>
{{model.product.name}}
</h2>
2019-12-17 05:14:13 -05:00
<hr>
2019-11-04 00:37:21 -05:00
<p>
{{html-safe model.product.description}}
2019-11-04 00:37:21 -05:00
</p>
</div>
<div class="section-column">
2019-11-28 04:11:48 -05:00
{{#unless model.product.subscribed}}
2019-11-28 23:08:51 -05:00
<h2>
2019-12-03 17:29:13 -05:00
{{i18n 'discourse_subscriptions.subscribe.card.title'}}
2019-11-28 23:08:51 -05:00
</h2>
2019-11-04 00:37:21 -05:00
2019-12-17 05:14:13 -05:00
<hr>
{{payment-options
plans=model.plans
selectedPlan=selectedPlan
}}
2019-12-05 21:52:03 -05:00
<hr>
{{subscribe-card cardElement=cardElement}}
2019-11-28 04:11:48 -05:00
{{#if loading}}
{{loading-spinner}}
{{else if isAnonymous}}
{{login-required}}
2019-11-28 23:08:51 -05:00
{{else}}
<div class='promo-code'>
{{input type="text" name="promo_code" placeholderKey="discourse_subscriptions.subscribe.promo_code" value=promoCode}}
</div>
{{d-button
2019-11-28 23:08:51 -05:00
disabled=loading
action="stripePaymentHandler"
class="btn btn-primary btn-payment"
label="discourse_subscriptions.plans.payment_button"
}}
2019-11-28 04:11:48 -05:00
{{/if}}
{{/unless}}
2019-11-04 00:37:21 -05:00
</div>
</div>