diff --git a/ereuse_devicehub/templates/inventory/erasure_list.html b/ereuse_devicehub/templates/inventory/erasure_list.html
index be57db76..b7af4b97 100644
--- a/ereuse_devicehub/templates/inventory/erasure_list.html
+++ b/ereuse_devicehub/templates/inventory/erasure_list.html
@@ -109,8 +109,12 @@
{% endif %}
+
+ If this text is showing is because there are an error
+
+
-
+
-
- {% if lot and not lot.is_temporary %}
-
-
Documents
-
-
-
- File |
- Uploaded on |
-
-
-
- {% for doc in lot.trade.documents %}
-
-
- {% if doc.url %}
- {{ doc.file_name}}
- {% else %}
- {{ doc.file_name}}
- {% endif %}
- |
-
- {{ doc.created.strftime('%H:%M %d-%m-%Y')}}
- |
-
- {% endfor %}
-
-
-
- {% endif %}
@@ -302,11 +289,6 @@
-{% include "inventory/lot_delete_modal.html" %}
-{% include "inventory/actions.html" %}
-{% include "inventory/allocate.html" %}
-{% include "inventory/data_wipe.html" %}
-{% include "inventory/trade.html" %}
{% include "inventory/alert_export_error.html" %}
{% include "inventory/alert_lots_changes.html" %}
@@ -315,14 +297,21 @@
$(document).ready(() => {
$(".dataTable-selector").on("change", function() {
const per_page = $('.dataTable-selector').val();
+ {% if orphans %}
+ window.location.href = "{{ url_for('inventory.device_erasure_list_orphans', orphans=1, page=1) }}&per_page="+per_page;
+ {% else %}
window.location.href = "{{ url_for('inventory.device_erasure_list', page=1) }}&per_page="+per_page;
+ {% endif %}
});
});