mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-08 15:22:46 +00:00
wrap elements in template framework and some i18n implementation
This commit is contained in:
parent
72a35cd738
commit
42fc79c232
@ -1,12 +1,17 @@
|
|||||||
<form id="payment-form">
|
<form id="payment-form" class="form-horizontal">
|
||||||
<div>
|
|
||||||
<label for="card-element">Credit or debit card</label>
|
<div class="control-group">
|
||||||
<div id="card-element"></div>
|
<label class="control-label" for="card-element">Credit or debit card</label>
|
||||||
|
<div id="card-element" class="controls"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button {{action "submitStripeCard"}}>Submit Payment</button>
|
<div class="control-group save-button">
|
||||||
|
<div class="controls">
|
||||||
|
<button {{action "submitStripeCard"}} class="btn btn-primary">{{i18n 'discourse_payments.submit'}}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#if result}}
|
{{#if result}}
|
||||||
<div class="stripe-card-result">payment happened</div>
|
<span>{{i18n 'discourse_payments.success'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</form>
|
</form>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
{{#d-section pageClass="stripe-payments"}}
|
||||||
|
<h2>{{i18n 'discourse_payments.title'}}</h2>
|
||||||
<h2>Payments</h2>
|
{{stripe-card}}
|
||||||
|
{{/d-section}}
|
||||||
{{stripe-card}}
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
en:
|
en:
|
||||||
js:
|
js:
|
||||||
discourse_payments:
|
discourse_payments:
|
||||||
|
title: Donate
|
||||||
|
success: Payment Successful
|
||||||
|
submit: Make Payment
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# name: discourse-payments
|
# name: discourse-payments
|
||||||
# about: Integrating Discourse with Stripe
|
# about: Integrating Discourse with Stripe
|
||||||
# version: 1.3.0
|
# version: 1.3.1
|
||||||
# url: https://github.com/choiceaustralia/discourse-payments
|
# url: https://github.com/choiceaustralia/discourse-payments
|
||||||
# authors: Rimian Perkins
|
# authors: Rimian Perkins
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user