discourse/app/assets/javascripts/admin/addon/components/admin-form-row.hbs
Martin Brennan c80b5b718c
FIX: Add checkbox-label to more checkbox label elements (#24174)
Followup to e2d9117378, which
made these labels bold because they were missing the correct
class.
2023-10-31 08:57:50 +01:00

18 lines
426 B
Handlebars

<div class="form-element label-area">
{{#if this.label}}
<label
class={{concat-class (if (eq @type "checkbox") "checkbox-label")}}
>{{i18n this.label}}</label>
{{else}}
&nbsp;
{{/if}}
</div>
<div class="form-element input-area">
{{#if this.wrapLabel}}
<label
class={{concat-class (if (eq @type "checkbox") "checkbox-label")}}
>{{yield}}</label>
{{else}}
{{yield}}
{{/if}}
</div>