summaryrefslogtreecommitdiff
path: root/app/jrnl/templates/horizontal_select.html
blob: 4b0a2a1d1732280b1cb0bd8190a6337d5423382a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% with id=widget.attrs.id %}
    <ul{% if id %} id="{{ id }}"{% endif %}{% if widget.attrs.class %} class="{{ widget.attrs.class }}"{% endif %}>
        {% for group, options, index in widget.optgroups %}
            {% if group %}
                <li>{{ group }}
                <ul{% if id %} id="{{ id }}_{{ index }}"{% endif %}>
            {% endif %}
            {% for option in options %}
            <li data-imageid="{{option.value}}">{% include option.template_name with widget=option %}</li>
            {% endfor %}
            {% if group %}
                </ul>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endwith %}