Fix: let user fields respond when their labels are clicked

This commit is contained in:
Jeff Wong 2018-06-18 11:11:44 -07:00
parent 320cd9a19e
commit 7a1cefce78
3 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>