Merge branch 'currency_format' into staging
This commit is contained in:
commit
5f5c664f42
|
@ -2,7 +2,14 @@ import { ajax } from 'discourse/lib/ajax';
|
|||
import { getRegister } from 'discourse-common/lib/get-owner';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
donateAmounts: [1, 5, 10, 25],
|
||||
donateAmounts: [
|
||||
{ value: 1, name: '$1.00'},
|
||||
{ value: 2, name: '$2.00'},
|
||||
{ value: 5, name: '$5.00'},
|
||||
{ value: 10, name: '$10.00'},
|
||||
{ value: 20, name: '$20.00'},
|
||||
{ value: 50, name: '$50.00'}
|
||||
],
|
||||
result: null,
|
||||
amount: null,
|
||||
stripe: null,
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
<form id="payment-form" class="form-horizontal">
|
||||
|
||||
<div class="control-group" style="width: 550px;">
|
||||
<label class="control-label" for="card-element">{{i18n 'discourse_donations.amount'}}</label>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="card-element">
|
||||
{{i18n 'discourse_donations.amount'}}
|
||||
{{settings.discourse_donations_currency}}
|
||||
</label>
|
||||
<div class="controls controls-dropdown">
|
||||
{{combo-box valueAttribute="value" content=donateAmounts value=amount}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue