mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
Fix: let user fields respond when their labels are clicked
This commit is contained in:
parent
320cd9a19e
commit
7a1cefce78
@ -1,4 +1,4 @@
|
||||
<label class="control-label">{{{field.name}}}</label>
|
||||
<label class="control-label" for="{{concat 'user-' elementId}}">{{{field.name}}}</label>
|
||||
<div class='controls'>
|
||||
<label class="control-label checkbox-label">{{input checked=value type="checkbox"}} {{{field.description}}}</label>
|
||||
<label class="control-label checkbox-label">{{input id=(concat 'user-' elementId) checked=value type="checkbox"}} {{{field.description}}}</label>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<label class="control-label">{{{field.name}}}</label>
|
||||
<label class="control-label" for="{{concat 'user-' elementId}}">{{{field.name}}}</label>
|
||||
<div class='controls'>
|
||||
{{combo-box content=field.options value=value none=noneLabel}}
|
||||
{{combo-box id=(concat 'user-' elementId) content=field.options value=value none=noneLabel}}
|
||||
{{#if field.required}}<span class='required'>*</span>{{/if}}
|
||||
<div class="instructions">{{{field.description}}}</div>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<label class="control-label">{{{field.name}}}</label>
|
||||
<label class="control-label" for="{{concat 'user-' elementId}}">{{{field.name}}}</label>
|
||||
<div class='controls'>
|
||||
{{input value=value maxlength=site.user_field_max_length}}
|
||||
{{input id=(concat 'user-' elementId) value=value maxlength=site.user_field_max_length}}
|
||||
{{#if field.required}}<span class='required'>*</span>{{/if}}
|
||||
<div class="instructions">{{{field.description}}}</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user