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.
This commit is contained in:
Martin Brennan
2023-10-31 17:57:50 +10:00
committed by GitHub
parent 84fdf40dd4
commit c80b5b718c
9 changed files with 28 additions and 24 deletions

View File

@@ -1,13 +1,17 @@
<div class="form-element label-area">
{{#if this.label}}
<label>{{i18n this.label}}</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>{{yield}}</label>
<label
class={{concat-class (if (eq @type "checkbox") "checkbox-label")}}
>{{yield}}</label>
{{else}}
{{yield}}
{{/if}}

View File

@@ -30,27 +30,27 @@
</AdminFormRow>
{{/if}}
<AdminFormRow @wrapLabel="true">
<AdminFormRow @wrapLabel="true" @type="checkbox">
<Input @type="checkbox" @checked={{this.buffered.editable}} />
<span>{{i18n "admin.user_fields.editable.title"}}</span>
</AdminFormRow>
<AdminFormRow @wrapLabel="true">
<AdminFormRow @wrapLabel="true" @type="checkbox">
<Input @type="checkbox" @checked={{this.buffered.required}} />
<span>{{i18n "admin.user_fields.required.title"}}</span>
</AdminFormRow>
<AdminFormRow @wrapLabel="true">
<AdminFormRow @wrapLabel="true" @type="checkbox">
<Input @type="checkbox" @checked={{this.buffered.show_on_profile}} />
<span>{{i18n "admin.user_fields.show_on_profile.title"}}</span>
</AdminFormRow>
<AdminFormRow @wrapLabel="true">
<AdminFormRow @wrapLabel="true" @type="checkbox">
<Input @type="checkbox" @checked={{this.buffered.show_on_user_card}} />
<span>{{i18n "admin.user_fields.show_on_user_card.title"}}</span>
</AdminFormRow>
<AdminFormRow @wrapLabel="true">
<AdminFormRow @wrapLabel="true" @type="checkbox">
<Input @type="checkbox" @checked={{this.buffered.searchable}} />
<span>{{i18n "admin.user_fields.searchable.title"}}</span>
</AdminFormRow>

View File

@@ -10,7 +10,7 @@
}}</div>
{{/if}}
{{#if this.canManageUploadsInBackup}}
<label>
<label class="checkbox-label">
<Input @type="checkbox" @checked={{this.includeUploads}} />
{{i18n "admin.backups.operations.backup.include_uploads"}}
</label>

View File

@@ -24,7 +24,7 @@
/>
</div>
<div class="control-group">
<label>
<label class="checkbox-label">
<Input @type="checkbox" @checked={{this.replaceBadgeOwners}} />
{{i18n "admin.badges.mass_award.replace_owners"}}
</label>

View File

@@ -229,7 +229,7 @@
<div class="control-group">
<div>
<label>
<label class="checkbox-label">
<Input @type="checkbox" @checked={{this.buffered.allow_title}} />
{{i18n "admin.badges.allow_title"}}
</label>

View File

@@ -56,7 +56,7 @@
@modelId={{this.model.id}}
/>
{{else}}
<label>
<label class="checkbox-label">
<Input @type="checkbox" @checked={{this.model.user_selectable}} />
{{i18n "admin.customize.theme.color_scheme_user_selectable"}}
</label>
@@ -65,7 +65,7 @@
{{#unless this.model.theme_id}}
<div class="pull-right">
<label>
<label class="checkbox-label">
<Input @type="checkbox" @checked={{this.onlyOverridden}} />
{{i18n "admin.settings.show_overriden"}}
</label>

View File

@@ -141,7 +141,7 @@
</label>
<div>
<label>
<label class="checkbox-label">
<Input @type="checkbox" name="active" @checked={{this.model.active}} />
{{i18n "admin.web_hooks.active"}}
</label>