checkboxes-list.html 609 B

1234567891011121314151617
  1. {% assign items = include.items | default: "Push Notifications:1,SMS Notifications,Email Notifications:1" | split: ',' %}
  2. <div class="divide-y{% if include.class %} {{ include.class }}{% endif %}">
  3. {% for item in items %}
  4. {% assign item-options = item | split: ':' %}
  5. <div>
  6. <label class="row">
  7. <span class="col">{{ item-options[0] }}</span>
  8. <span class="col-auto">
  9. <label class="form-check form-check-single form-switch">
  10. <input class="form-check-input" type="checkbox"{% if item-options[1] == '1' %} checked{% endif %}>
  11. </label>
  12. </span>
  13. </label>
  14. </div>
  15. {% endfor %}
  16. </div>