mirror of
https://github.com/tabler/tabler.git
synced 2025-12-24 02:38:15 +04:00
17 lines
609 B
HTML
17 lines
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> |