{% extends "ereuse_devicehub/base_site.html" %} {% block main %}

Inventory

{{ placeholder.device.devicehub_id }}

{% if placeholder.status in ['Abstract', 'Real'] %} Binding {% elif placeholder.status == 'Twin' %} Unbinding {% endif %}
Details Real parth
{{ placeholder.status }}
Phid
{{ placeholder.phid }}
Type
{{ placeholder.device.type }}
Manufacturer
{{ placeholder.device.manufacturer or ''}}
Model
{{ placeholder.device.model or ''}}
Serial Number
{{ placeholder.device.serial_number or ''}}
{% if placeholder.binding %}
Details Abstract parth
Type
{{ placeholder.binding.type }}
Manufacturer
{{ placeholder.binding.manufacturer or ''}}
Model
{{ placeholder.binding.model or ''}}
Serial Number
{{ placeholder.binding.serial_number or ''}}
{% endif %}
Incoming Lots
{% for lot in placeholder.device.lots %} {% if lot.is_incoming %} {% endif %} {% endfor %}
Outgoing Lots
{% for lot in placeholder.device.lots %} {% if lot.is_outgoing %} {% endif %} {% endfor %}
Temporary Lots
{% for lot in placeholder.device.lots %} {% if lot.is_temporary %} {% endif %} {% endfor %}
Status Details
Physical State
{% if placeholder.device.physical_status %} {{ placeholder.device.physical_status.type }} {% endif %}
Lifecycle State
{% if placeholder.device.status %} {{ placeholder.device.status.type }} {% endif %}
Allocated State
{% if placeholder.device.allocated_status %} {{ placeholder.device.allocated_status.type }} {% endif %}
Traceability log Details
{% for action in placeholder.actions %}
{{ action.type }} {{ action.severity }} {{ action.created.strftime('%H:%M %d-%m-%Y') }}
{% endfor %}
Components Real parth
{{ placeholder.components or '' }}
{% if placeholder.binding %}
Components Abstract parth
{% for component in placeholder.binding.components|sort(attribute='type') %}
{{ component.type }}
{{ component.created.strftime('%H:%M %d-%m-%Y') }}

{{ component.manufacturer }}
{{ component.model }}

{% if component.type in ['RamModule', 'HardDrive', 'SolidStateDrive'] %} {{ component.size }}MB {% endif %}
{% endfor %}
{% endif %}
{% if placeholder.status %}
Binding

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