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

Inventory

{{ placeholder.device.devicehub_id }}

Details Real parth
{{ placeholder.device.is_abstract() }}
Phid
{{ placeholder.phid }}
Type
{{ placeholder.device.type }}
Manufacturer
{{ placeholder.device.manufacturer or ''}}
Model
{{ placeholder.device.model or ''}}
Serial Number
{{ placeholder.device.serial_number or ''}}
Details Abstract parth
Type
{{ placeholder.binding.type }}
Manufacturer
{{ placeholder.binding.manufacturer or ''}}
Model
{{ placeholder.binding.model or ''}}
Serial Number
{{ placeholder.binding.serial_number or ''}}
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 Details
{% if device.binding %}
{% for component in device.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 %}
{% else %}
{{ device.placeholder.components or '' }}
{% endif %}
{% if device.is_abstract() %}
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 %}