[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" /> <input type="submit" value="" id="search_submit" />
</div> </div>
<div> <div>
{% for category in categories %} {% include 'categories.html' %}
<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 %}
</div> </div>
</form> </form>