This commit is contained in:
Joseph Cheung 2023-02-19 17:51:16 +08:00
parent fd843a169a
commit 3747a01486
35 changed files with 1624 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<div id="categories">
{%- if rtl -%}
{% for category in categories | reverse -%}
<a>
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
</a>
{%- endfor %}
{%- else -%}
{% for category in categories -%}
<a>
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
</a>
{%- endfor %}
{%- endif -%}
</div>