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") }}