2016-07-17 18:43:47 +02:00
|
|
|
<div id="categories">
|
2015-02-10 15:23:56 +01:00
|
|
|
{% if rtl %}
|
2016-07-17 18:43:47 +02:00
|
|
|
{% 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 02:08:24 +02:00
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
|
2016-07-17 18:43:47 +02:00
|
|
|
{% endfor %}
|
2015-02-10 15:23:56 +01:00
|
|
|
{% else %}
|
2016-07-17 18:43:47 +02:00
|
|
|
{% 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 02:08:24 +02:00
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
|
2016-07-17 18:43:47 +02:00
|
|
|
{% endfor %}
|
2015-02-10 15:23:56 +01:00
|
|
|
{% endif %}
|
2015-01-15 15:48:50 +01:00
|
|
|
</div>
|