input-image.html 838 B

12345678910111213141516171819
  1. {% assign limit = include.limit | default: 6 %}
  2. {% assign offset = include.offset | default: 0 %}
  3. <div class="mb-3">
  4. <label class="form-label">Image Check</label>
  5. <div class="row g-2">
  6. {% assign photos = photos | where: 'horizontal', true %}
  7. {% for photo in photos limit: limit offset: offset %}
  8. <div class="{{ include.row-class | default: 'col-6 col-sm-4' }}">
  9. <label class="form-imagecheck mb-2">
  10. <input name="form-imagecheck" type="checkbox" value="{{ forloop.index }}" class="form-imagecheck-input" {% if forloop.index == 2 or forloop.index == 4 or forloop.index == 7 %} checked{% endif %}/>
  11. <span class="form-imagecheck-figure">
  12. <img src="{{ base }}/assets/static/photos/{{ photo.file }}" alt="{{ photo.title }}" class="form-imagecheck-image">
  13. </span>
  14. </label>
  15. </div>
  16. {% endfor %}
  17. </div>
  18. </div>