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