26 lines
No EOL
623 B
Handlebars
26 lines
No EOL
623 B
Handlebars
<div class={{@wrapper-class}}>
|
|
{{#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}}
|
|
</div> |