mirror of
https://github.com/tabler/tabler.git
synced 2025-12-25 03:08:14 +04:00
20 lines
860 B
HTML
20 lines
860 B
HTML
{% assign limit = include.limit | default: 6 %}
|
|
{% assign offset = include.offset | default: 0 %}
|
|
<div class="mb-3">
|
|
<label class="form-label">Image Check</label>
|
|
<div class="row g-2">
|
|
{% assign filtered-photos = photos | where: 'horizontal', true %}
|
|
|
|
{% for photo in filtered-photos limit: limit offset: offset %}
|
|
<div class="{{ include.row-class | default: 'col-6 col-sm-4' }}">
|
|
<label class="form-imagecheck mb-2">
|
|
<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 %}/>
|
|
<span class="form-imagecheck-figure">
|
|
<img src="{{ page | relative }}/static/photos/{{ photo.file }}" alt="{{ photo.title }}" class="form-imagecheck-image">
|
|
</span>
|
|
</label>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|