categories.html 783 B

1234567891011121314
  1. <div id="categories">
  2. {%- if rtl -%}
  3. {% for category in categories | reverse -%}
  4. <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
  5. <label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
  6. {%- endfor %}
  7. {%- else -%}
  8. {% for category in categories -%}
  9. <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
  10. <label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
  11. {%- endfor %}
  12. {%- endif -%}
  13. </div>