{% 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 %}