diff --git a/gestion/templates/gestion/categories_list.html b/gestion/templates/gestion/categories_list.html
index 10bd2bd..4ec04ed 100644
--- a/gestion/templates/gestion/categories_list.html
+++ b/gestion/templates/gestion/categories_list.html
@@ -19,6 +19,7 @@
Nom |
Ordre |
+ Nombre de produits (dont actifs) |
Administrer |
@@ -27,6 +28,7 @@
{{ category }} |
{% if category.order == 0 %}0 (non affichéé){% else %}{{category.order}}{% endif %} |
+ {{category.product_set.count}} ({{category.active_products.count}}) |
Profil {% if perms.gestion.change_category %} Modifier{% endif %} |
{% endfor %}
diff --git a/gestion/templates/gestion/manage.html b/gestion/templates/gestion/manage.html
index 8f0c22b..1319347 100644
--- a/gestion/templates/gestion/manage.html
+++ b/gestion/templates/gestion/manage.html
@@ -142,15 +142,17 @@
{% endif %}
{% for category in categories %}
+ {% if category.active_products.count > 0 %}
{{category}} |
{% for product in category.active_products %}
{% if forloop.counter0|divisibleby:4 %}
- {% endif %}
+ {% endif %}
|
- {% if forloop.counter|divisibleby:4 %}
+ {% if forloop.counter|divisibleby:4 %}
{% endif %}
+ {% endif %}
{% endfor %}
{% if not category.active_products|divisibleby:4 %}