From f2d6c198cc7d4aafb6224ef7dfd178d629c9163e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 9 Feb 2022 11:28:57 +0100 Subject: [PATCH] fix css for form documents into data_wipe html --- .../templates/inventory/data_wipe.html | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ereuse_devicehub/templates/inventory/data_wipe.html b/ereuse_devicehub/templates/inventory/data_wipe.html index 8ce124ad..a44130ec 100644 --- a/ereuse_devicehub/templates/inventory/data_wipe.html +++ b/ereuse_devicehub/templates/inventory/data_wipe.html @@ -26,6 +26,28 @@ {{ field }} {% elif field == form_new_datawipe.type %} {{ field }} + {% elif field == form_new_datawipe.document %} + {% for _field in field %} +
+ {{ _field.label(class_="form-label") }} + {% if _field == field.success %} +
+ {{ _field(class_="form-check-input") }} + {{ _field.description }} +
+ {% else %} + {{ _field(class_="form-control") }} + {{ _field.description }} + {% endif %} + {% if _field.errors %} +

+ {% for error in _field.errors %} + {{ error }}
+ {% endfor %} +

+ {% endif %} +
+ {% endfor %} {% else %}
{{ field.label(class_="form-label") }}