From 1b5630c7e93d6bed3f9121953b8ef4fa5103e4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Poulain?= Date: Tue, 14 May 2024 19:44:28 +0200 Subject: [PATCH] fix --- .../templates/admin/fournée_change_form.html | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/fournée/templates/admin/fournée_change_form.html b/fournée/templates/admin/fournée_change_form.html index 97d4d4e..8aea24a 100644 --- a/fournée/templates/admin/fournée_change_form.html +++ b/fournée/templates/admin/fournée_change_form.html @@ -42,9 +42,24 @@ {% if forloop.first %} Total pain : {{p}} kg {% else %} - - {{ p }} kg - + {% if i.conditionnement %} + {% emballe p i as alt %} + {% if alt %} + + {{ p }} kg + symbole œil +
({{ alt }})
+ + {% else %} + + {{ p }} kg + + {% endif %} + {% else %} + + {{ p }} kg + + {% endif %} {% endif %} {% endfor %} @@ -76,11 +91,15 @@ symbole œil
({{ alt }})
- {% else %} + {% else %} {{ q }} kg {% endif %} + {% else %} + + {{ q }} kg + {% endif %} {% endif %} {% endfor %}