[mod] separating categories

This commit is contained in:
asciimoo 2014-01-01 22:16:21 +01:00
parent 11fdd8e8ac
commit a3de9ba56c
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -4,10 +4,6 @@
<input type="submit" value="" id="search_submit" />
</div>
<div>
{% for category in categories %}
<div class="checkbox_container">
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
</div>
{% endfor %}
{% include 'categories.html' %}
</div>
</form>