2024-10-25 08:52:43 +00:00
|
|
|
<div class={{@wrapper-class}}>
|
2024-11-19 14:05:12 +00:00
|
|
|
{{#if @readonly}}
|
|
|
|
<ul>
|
|
|
|
{{#each this.args.elements as |element|}}
|
|
|
|
{{#if element.checked}}
|
|
|
|
<li>
|
|
|
|
<p>{{element.name}}</p>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
{{#each this.args.elements as |element|}}
|
|
|
|
<label class={{@label-class}}>
|
|
|
|
{{element.description}}
|
|
|
|
<Input
|
|
|
|
@type="checkbox"
|
|
|
|
name="{{element.name}}"
|
|
|
|
class="{{@input-classes}}"
|
|
|
|
@checked={{element.checked}}
|
|
|
|
{{on "change" this.onChange}}
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2024-10-25 08:52:43 +00:00
|
|
|
</div>
|