initial create account fields
This commit is contained in:
@@ -20,6 +20,7 @@ export default Ember.Component.extend({
|
||||
this._super();
|
||||
this.set('anon', (Discourse.User.current() == null));
|
||||
this.set('settings', getRegister(this).lookup('site-settings:main'));
|
||||
this.set('create_accounts', this.get('settings').discourse_donations_enable_create_accounts);
|
||||
this.set('stripe', Stripe(this.get('settings').discourse_donations_public_key));
|
||||
},
|
||||
|
||||
|
||||
@@ -22,6 +22,29 @@
|
||||
{{text-field value=email}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if create_accounts}}
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="card-element">{{i18n 'user.username.title'}}</label>
|
||||
<div class="controls">
|
||||
{{text-field value=username}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="card-element">{{i18n 'user.name.title'}}</label>
|
||||
<div class="controls">
|
||||
{{text-field value=name}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="card-element">{{i18n 'user.password.title'}}</label>
|
||||
<div class="controls">
|
||||
{{input type="password" value=password}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<div class="control-group save-button">
|
||||
|
||||
Reference in New Issue
Block a user