CLEANUP: removed all unused handlebars helpers REFACTOR: removed 'unbound' prefix (for performance reasons, helpers are unbound by default) REFACTOR: added 'bound' prefix to bound helpers REFACTOR: renamed helper using 'foo-bar-foo' syntax (instead of camel case)
84 lines
2.9 KiB
Handlebars
84 lines
2.9 KiB
Handlebars
{{#unless complete}}
|
|
<div class="modal-body">
|
|
<div>
|
|
<form>
|
|
<table>
|
|
<tr class="input">
|
|
<td style="width:80px" class="label"><label for='new-account-name'>{{i18n user.name.title}}</label></td>
|
|
<td style="width:496px">
|
|
{{text-field value=accountName id="new-account-name" autofocus="autofocus"}}
|
|
{{input-tip validation=nameValidation}}
|
|
</td>
|
|
</tr>
|
|
<tr class="instructions">
|
|
<td></td>
|
|
<td><label>{{i18n user.name.instructions}}</label></td>
|
|
</tr>
|
|
|
|
<tr class="input">
|
|
<td class="label"><label for='new-account-email'>{{i18n user.email.title}}</label></td>
|
|
<td>
|
|
{{input value=accountEmail id="new-account-email" disabled=emailValidated}}
|
|
{{input-tip validation=emailValidation}}
|
|
</td>
|
|
</tr>
|
|
<tr class="instructions">
|
|
<td></td>
|
|
<td><label>{{i18n user.email.instructions}}</label></td>
|
|
</tr>
|
|
|
|
<tr class="input">
|
|
<td class="label"><label for='new-account-username'>{{i18n user.username.title}}</label></td>
|
|
<td>
|
|
{{input value=accountUsername id="new-account-username" maxlength=Discourse.SiteSettings.max_username_length}}
|
|
{{input-tip validation=usernameValidation}}
|
|
</td>
|
|
</tr>
|
|
<tr class="instructions">
|
|
<td></td>
|
|
<td><label>{{i18n user.username.instructions}}</label></td>
|
|
</tr>
|
|
|
|
{{#if passwordRequired}}
|
|
<tr class="input">
|
|
<td class="label"><label for='new-account-password'>{{i18n user.password.title}}</label></td>
|
|
<td>
|
|
{{input type="password" value=accountPassword id="new-account-password"}}
|
|
{{input-tip validation=passwordValidation}}
|
|
</td>
|
|
</tr>
|
|
<tr class="instructions">
|
|
<td></td>
|
|
<td><label>{{passwordInstructions}}</label></td>
|
|
</tr>
|
|
{{/if}}
|
|
|
|
<tr class="password-confirmation">
|
|
<td><label for='new-account-password-confirmation'>{{i18n user.password_confirmation.title}}</label></td>
|
|
<td>
|
|
{{input type="password" value=accountPasswordConfirm id="new-account-confirmation"}}
|
|
{{input value=accountChallenge id="new-account-challenge"}}
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
{{#if tosAcceptRequired}}
|
|
<div class="tos-agree">
|
|
{{input type="checkbox" checked=tosAccepted}}
|
|
{{custom-html "tos_signup_form_message"}}
|
|
</div>
|
|
{{/if}}
|
|
<button class='btn btn-large btn-primary' {{bind-attr disabled="submitDisabled"}} {{action createAccount}}>{{i18n create_account.title}}</button>
|
|
{{#if formSubmitted}}
|
|
<i class='fa fa-spinner fa-spin'></i>
|
|
{{else}}
|
|
<a {{action showLogin}}>{{i18n cancel}}</a>
|
|
{{/if}}
|
|
</div>
|
|
{{/unless}}
|