goffeetabler/liquid/includes/parts/form/checkboxes-list.html
2026-05-01 12:46:11 -05:00

17 lines
No EOL
609 B
HTML

{% assign items = include.items | default: "Push Notifications:1,SMS Notifications,Email Notifications:1" | split: ',' %}
<div class="divide-y{% if include.class %} {{ include.class }}{% endif %}">
{% for item in items %}
{% assign item-options = item | split: ':' %}
<div>
<label class="row">
<span class="col">{{ item-options[0] }}</span>
<span class="col-auto">
<label class="form-check form-check-single form-switch">
<input class="form-check-input" type="checkbox"{% if item-options[1] == '1' %} checked{% endif %}>
</label>
</span>
</label>
</div>
{% endfor %}
</div>