mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 04:23:47 +08:00
e4c373194d
This commit refactors the Wizard component code in preparation for moving it to the 'static' directory for Embroider route-splitting. It also includes a number of general improvements and simplifications. Extracted from https://github.com/discourse/discourse/pull/23678 Co-authored-by: Godfrey Chan <godfreykfc@gmail.com>
16 lines
409 B
Handlebars
16 lines
409 B
Handlebars
{{#each this.field.choices as |c|}}
|
|
<div class="checkbox-field-choice {{this.fieldClass}}">
|
|
<label id={{c.id}} value={{c.label}}>
|
|
<Input
|
|
@type="checkbox"
|
|
class="wizard-container__checkbox"
|
|
@checked={{c.checked}}
|
|
{{on "click" (action "changed")}}
|
|
/>
|
|
{{#if c.icon}}
|
|
{{d-icon c.icon}}
|
|
{{/if}}
|
|
{{c.label}}
|
|
</label>
|
|
</div>
|
|
{{/each}} |