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>
|
2020-10-12 11:01:33 -04:00
|
|
|
{{html-safe model.product.description}}
|
2019-11-04 00:37:21 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
2022-06-11 06:54:30 -04:00
|
|
|
|
2019-11-04 00:37:21 -05:00
|
|
|
<div class="section-column">
|
2021-01-31 15:17:44 -05:00
|
|
|
{{#if canPurchase}}
|
2019-11-28 23:08:51 -05:00
|
|
|
<h2>
|
2021-07-04 15:53:55 -04: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>
|
|
|
|
|
2022-06-11 06:54:30 -04:00
|
|
|
{{payment-options plans=model.plans selectedPlan=selectedPlan}}
|
2019-12-05 21:52:03 -05:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2020-10-29 11:21:14 -04:00
|
|
|
{{subscribe-card cardElement=cardElement}}
|
|
|
|
|
2019-11-28 04:11:48 -05:00
|
|
|
{{#if loading}}
|
|
|
|
{{loading-spinner}}
|
2020-10-28 14:30:26 -04:00
|
|
|
{{else if isAnonymous}}
|
|
|
|
{{login-required}}
|
2019-11-28 23:08:51 -05:00
|
|
|
{{else}}
|
2022-10-03 09:14:32 -04:00
|
|
|
{{input
|
|
|
|
type="text"
|
|
|
|
name="promo_code"
|
|
|
|
placeholder=(i18n "discourse_subscriptions.subscribe.promo_code")
|
|
|
|
value=promoCode
|
|
|
|
class="subscribe-promo-code"
|
|
|
|
}}
|
2020-10-28 14:30:26 -04:00
|
|
|
|
2020-07-22 12:06:34 -04:00
|
|
|
{{d-button
|
2019-11-28 23:08:51 -05:00
|
|
|
disabled=loading
|
2022-07-05 19:20:12 -04:00
|
|
|
action=(action "stripePaymentHandler")
|
2020-07-22 12:06:34 -04:00
|
|
|
class="btn btn-primary btn-payment"
|
|
|
|
label="discourse_subscriptions.plans.payment_button"
|
|
|
|
}}
|
2019-11-28 04:11:48 -05:00
|
|
|
{{/if}}
|
2021-06-02 14:15:03 -04:00
|
|
|
{{else}}
|
2021-07-04 15:53:55 -04:00
|
|
|
<h2>{{i18n "discourse_subscriptions.subscribe.already_purchased"}}</h2>
|
|
|
|
|
2022-06-11 06:54:30 -04:00
|
|
|
{{#link-to
|
|
|
|
"user.billing.subscriptions"
|
|
|
|
currentUser.username
|
|
|
|
class="btn btn-primary"
|
|
|
|
}}
|
2021-07-04 15:53:55 -04:00
|
|
|
{{i18n "discourse_subscriptions.subscribe.go_to_billing"}}
|
2021-06-02 14:15:03 -04:00
|
|
|
{{/link-to}}
|
2021-01-31 15:17:44 -05:00
|
|
|
{{/if}}
|
2019-11-04 00:37:21 -05:00
|
|
|
</div>
|
|
|
|
</div>
|