From fb430f21383cf272f89d12c36913f64f4fe9cf89 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 21 Nov 2022 15:14:02 +0100 Subject: [PATCH] add lot to list erasure --- .../templates/inventory/erasure_list.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ereuse_devicehub/templates/inventory/erasure_list.html b/ereuse_devicehub/templates/inventory/erasure_list.html index 1b55ba97..adaec94f 100644 --- a/ereuse_devicehub/templates/inventory/erasure_list.html +++ b/ereuse_devicehub/templates/inventory/erasure_list.html @@ -140,11 +140,24 @@ {% if ac.device.phid() %} + {% if ac.device.get_type_logo() %} + + {% endif %} {{ ac.device.serial_number.upper() }} {% else %} + {% if ac.device.get_type_logo() %} + + {% endif %} {{ ac.device.serial_number.upper() }} {% endif %} + {% if ac.device.lots | length > 0 %} +
+ {% for lot in ac.device.get_lots_for_template() %} + {{ lot }} + {% endfor %} +
+ {% endif %} {% if ac.device.phid() %}