2016-07-17 18:43:47 +02:00
|
|
|
<div id="categories">
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- if rtl -%}
|
2021-12-22 15:51:26 +01:00
|
|
|
{% for category in categories_as_tabs | reverse -%}
|
2019-08-06 11:41:16 +02:00
|
|
|
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
|
2016-07-27 02:08:24 +02:00
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- else -%}
|
2021-12-22 15:51:26 +01:00
|
|
|
{% for category in categories_as_tabs -%}
|
2019-08-06 11:41:16 +02:00
|
|
|
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
|
2016-07-27 02:08:24 +02:00
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif -%}
|
2015-01-15 15:48:50 +01:00
|
|
|
</div>
|