mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 05:55:57 +08:00
DEV: allows to wrap wizard checkbox with outlet (#24334)
This commit is contained in:
parent
f395130429
commit
1dad379412
@ -1,17 +1,23 @@
|
||||
<label class="wizard-container__label">
|
||||
<Input
|
||||
@type="checkbox"
|
||||
disabled={{this.field.disabled}}
|
||||
class="wizard-container__checkbox"
|
||||
@checked={{this.field.value}}
|
||||
/>
|
||||
<span class="wizard-container__checkbox-slider"></span>
|
||||
{{#if this.field.icon}}
|
||||
{{d-icon this.field.icon}}
|
||||
{{/if}}
|
||||
<span class="wizard-container__checkbox-label">
|
||||
{{this.field.placeholder}}
|
||||
</span>
|
||||
<PluginOutlet
|
||||
@name="wizard-checkbox"
|
||||
@outletArgs={{hash disabled=this.field.disabled}}
|
||||
>
|
||||
<Input
|
||||
@type="checkbox"
|
||||
disabled={{this.field.disabled}}
|
||||
class="wizard-container__checkbox"
|
||||
@checked={{this.field.value}}
|
||||
/>
|
||||
<span class="wizard-container__checkbox-slider"></span>
|
||||
{{#if this.field.icon}}
|
||||
{{d-icon this.field.icon}}
|
||||
{{/if}}
|
||||
<span class="wizard-container__checkbox-label">
|
||||
{{this.field.placeholder}}
|
||||
</span>
|
||||
</PluginOutlet>
|
||||
|
||||
<PluginOutlet
|
||||
@name="below-wizard-checkbox"
|
||||
@outletArgs={{hash disabled=this.field.disabled}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user