1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

input image

This commit is contained in:
codecalm
2018-02-19 22:07:33 +01:00
parent 2aed4f85a2
commit 402495bb55

View File

@@ -1,13 +1,13 @@
{% assign limit = include.limit | default: 8 %}
{% assign limit = include.limit | default: 9 %}
<div class="form-group">
<label class="form-label">Image Check</label>
<div class="row sm-gutters">
{% for user in site.data.users limit: limit offset: 30 %}
<div class="{{ include.row-class | default: 'col-4 col-sm-3' }}">
{% 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 %} checked{% endif %} />
<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 }}/{{ user.photo }}" alt="{{ user.name }} {{ user.surname }}" class="imagecheck-image">
<img src="{{ site.base }}/{{ photo.small }}" alt="}" class="imagecheck-image">
</figure>
</label>
</div>