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