mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: hide full name field on the signup dialog when 'enable_names' is disabled
This commit is contained in:
parent
3c99d536f6
commit
b46663fab0
1 changed files with 11 additions and 8 deletions
|
@ -35,17 +35,20 @@
|
|||
</tr>
|
||||
{{/if}}
|
||||
|
||||
<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"}}
|
||||
{{input-tip validation=nameValidation}}
|
||||
{{#if siteSettings.enable_names}}
|
||||
<tr class="input">
|
||||
<td style="width:80px" class="label">
|
||||
<label for='new-account-name'>{{i18n 'user.name.title'}}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="instructions">
|
||||
<td style="width:496px">
|
||||
{{text-field value=accountName id="new-account-name"}} {{input-tip validation=nameValidation}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="instructions">
|
||||
<td></td>
|
||||
<td><label>{{nameInstructions}}</label></td>
|
||||
</tr>
|
||||
</tr>
|
||||
{{/if}}
|
||||
|
||||
{{#if passwordRequired}}
|
||||
<tr class="input">
|
||||
|
|
Loading…
Reference in a new issue