+
+ {{ form.data_storage_size(class_="form-control") }}
+
Size in GB.
+ {% if form.data_storage_size.errors %}
+
+ {% for error in form.data_storage_size.errors %}
+ {{ error }}
+ {% endfor %}
+
+ {% endif %}
+
{{ form.resolution(class_="form-control") }}
diff --git a/ereuse_devicehub/templates/inventory/erasure.html b/ereuse_devicehub/templates/inventory/erasure.html
index 5674ae9c..73d201a9 100644
--- a/ereuse_devicehub/templates/inventory/erasure.html
+++ b/ereuse_devicehub/templates/inventory/erasure.html
@@ -209,6 +209,16 @@
{% endif %}
+ {% if n_mobiles %}
+
+
+ N° of mobiles:
+ |
+
+ {{ n_mobiles }}
+ |
+
+ {% endif %}
N° of data storage unit(s):
@@ -322,12 +332,20 @@
|
{% for erasure in erasures %}
+ {% if erasure.device.is_mobile() %}
+
+ IMEI:{{ (erasure.device.imei or '') }}
+ |
+
+ |
+ {% else %}
{{ (erasure.device.serial_number or '').upper() }}
|
{{ (erasure.parent.serial_number or '').upper() }}
|
+ {% endif %}
{{ erasure.get_public_name() }}
|
@@ -351,12 +369,21 @@
Technical Details
{% endif %}
+ {% if erasure.device.is_mobile() %}
+ {{ (erasure.device.imei or '') }}
+
+ - Mobile Drive:
+ - Model: {{ erasure.device.model }}
+ - IMEI: {{ (erasure.device.imei or '') }}
+ - DHID: {{ erasure.device.dhid }}
+ - Size: {{ erasure.device.get_size() or '?' }} GB
+ {% else %}
{{ (erasure.device.serial_number or '').upper() }}
- Storage Drive:
- Model: {{ erasure.device.model }}
- SN: {{ (erasure.device.serial_number or '').upper() }}
- - Size: {{ erasure.device.get_size()}}
+ - Size: {{ erasure.device.get_size() or '' }}
{% if erasure.parent %}
- Computer Host:
@@ -364,6 +391,7 @@
- SN: {{ (erasure.parent.serial_number or '').upper() }}
- DHID: {{ erasure.parent.dhid }}
{% endif %}
+ {% endif %}
- Erasure:
diff --git a/ereuse_devicehub/templates/inventory/erasure_list.html b/ereuse_devicehub/templates/inventory/erasure_list.html
index 0e57e9f9..2449686b 100644
--- a/ereuse_devicehub/templates/inventory/erasure_list.html
+++ b/ereuse_devicehub/templates/inventory/erasure_list.html
@@ -162,6 +162,7 @@
{% for ac in erasure.items %}
+ {% if not ac.device.is_mobile() %}
|
+ {% endif %}
{% endfor %}