diff --git a/ereuse_devicehub/templates/inventory/binding_search.html b/ereuse_devicehub/templates/inventory/binding_search.html new file mode 100644 index 00000000..28fbad0b --- /dev/null +++ b/ereuse_devicehub/templates/inventory/binding_search.html @@ -0,0 +1,74 @@ +{% extends "ereuse_devicehub/base_site.html" %} +{% block main %} + +
+

Inventory

+ +
+ +
+
+ +
+ +
+
+

{{ device.devicehub_id }}

+ +
+ +
+
Binding
+ {% if device.is_abstract() == 'Twin' or not device.placeholder %} +
+

+ Device with Dhid: {{ device.devicehub_id }} is a Twin device.
+ If you want to do a binding with this device, you need todo an Unbinding first.
+ You can to do this in here. +

+
+ {% else %} +
+

+ Be careful, binding implies changes in the data of a device that affect its traceability. +

+
+
+
+ {{ form_binding.csrf_token }} + {% for field in form_binding %} + {% if field != form_binding.csrf_token %} + +
+ {{ field.label(class_="form-label") }}: + {{ field }} + {% if field.errors %} +

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

+ {% endif %} +
+ + {% endif %} + {% endfor %} +
+ +
+
+
+ {% endif %} +
+ +
+
+
+
+
+{% endblock main %}