mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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}}
|
||||
|
||||
{{/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}}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user