|
|
@ -142,15 +142,17 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% for category in categories %} |
|
|
{% for category in categories %} |
|
|
|
|
|
{% if category.active_products.count > 0 %} |
|
|
<tr style="text-align:center; font-weight:bold;"><td colspan="4">{{category}}</td></tr> |
|
|
<tr style="text-align:center; font-weight:bold;"><td colspan="4">{{category}}</td></tr> |
|
|
{% for product in category.active_products %} |
|
|
{% for product in category.active_products %} |
|
|
{% if forloop.counter0|divisibleby:4 %} |
|
|
{% if forloop.counter0|divisibleby:4 %} |
|
|
<tr style="text-align:center"> |
|
|
<tr style="text-align:center"> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
<td><button class="product {% if product.adherentRequired %}special{% endif%}" target="{{product.pk}}">{{product.name}}</button></td> |
|
|
<td><button class="product {% if product.adherentRequired %}special{% endif%}" target="{{product.pk}}">{{product.name}}</button></td> |
|
|
{% if forloop.counter|divisibleby:4 %} |
|
|
{% if forloop.counter|divisibleby:4 %} |
|
|
</tr> |
|
|
</tr> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% if not category.active_products|divisibleby:4 %} |
|
|
{% if not category.active_products|divisibleby:4 %} |
|
|
</tr> |
|
|
</tr> |
|
|
|