1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00
Files
tabler/_includes/parts/input-image.html
2018-02-19 22:07:33 +01:00

16 lines
695 B
HTML

{% assign limit = include.limit | default: 9 %}
<div class="form-group">
<label class="form-label">Image Check</label>
<div class="row sm-gutters">
{% for photo in site.data.photos limit: limit offset: 30 %}
<div class="{{ include.row-class | default: 'col-6 col-sm-4' }}">
<label class="imagecheck mb-4">
<input name="imagecheck" type="checkbox" value="{{ forloop.index }}" class="imagecheck-input" {% if forloop.index == 2 or forloop.index == 4 or forloop.index == 7 %} checked{% endif %} />
<figure class="imagecheck-figure">
<img src="{{ site.base }}/{{ photo.small }}" alt="}" class="imagecheck-image">
</figure>
</label>
</div>
{% endfor %}
</div>
</div>