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">
|
||||
<div>
|
||||
<label for="card-element">Credit or debit card</label>
|
||||
<div id="card-element"></div>
|
||||
<form id="payment-form" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="card-element">Credit or debit card</label>
|
||||
<div id="card-element" class="controls"></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}}
|
||||
<div class="stripe-card-result">payment happened</div>
|
||||
<span>{{i18n 'discourse_payments.success'}}</span>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
<h2>Payments</h2>
|
||||
|
||||
{{stripe-card}}
|
||||
{{#d-section pageClass="stripe-payments"}}
|
||||
<h2>{{i18n 'discourse_payments.title'}}</h2>
|
||||
{{stripe-card}}
|
||||
{{/d-section}}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
en:
|
||||
js:
|
||||
discourse_payments:
|
||||
title: Donate
|
||||
success: Payment Successful
|
||||
submit: Make Payment
|
||||
|
|
Loading…
Reference in New Issue