input-image-people.html 803 B

1234567891011121314151617181920
  1. {% assign limit = include.limit | default: 9 %}
  2. {% assign offset = include.offset | default: 8 %}
  3. {% assign avatar-size = include.avatar-size | default: "md" %}
  4. <div class="mb-3">
  5. <label class="form-label">Person Check</label>
  6. <div class="row g-2">
  7. {% for person in people limit: limit offset: offset %}
  8. <div class="col-auto">
  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. <span class="form-imagecheck-image">
  13. {% include "ui/avatar.html" size=avatar-size person=person %}
  14. </span>
  15. </span>
  16. </label>
  17. </div>
  18. {% endfor %}
  19. </div>
  20. </div>