Added descriptions to item categories

This commit is contained in:
Raphael Michel
2016-04-21 21:48:53 +02:00
parent 38f0e6e6d6
commit 765ae39fa0
5 changed files with 38 additions and 2 deletions

View File

@@ -56,7 +56,12 @@
{% csrf_token %}
{% for tup in items_by_category %}
<section>
{% if tup.0 %}<h3>{{ tup.0.name }}</h3>{% endif %}
{% if tup.0 %}
<h3>{{ tup.0.name }}</h3>
{% if tup.0.description %}
<p>{{ tup.0.description }}</p>
{% endif %}
{% endif %}
{% for item in tup.1 %}
{% if item.has_variations %}
<div class="item-with-variations">