From acf770a4ef75cde83ddd067437cc11eacbc26c66 Mon Sep 17 00:00:00 2001 From: Nanoy Date: Mon, 6 May 2019 08:39:31 +0200 Subject: [PATCH] Add number of products on product's list --- gestion/templates/gestion/categories_list.html | 2 ++ 1 file changed, 2 insertions(+) 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 %}