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

Inventory

{{ device.devicehub_id }}

Details
{% if device.placeholder %}
{{ device.is_abstract() }}
{% endif %} {% if device.placeholder %}
Phid
{{ device.placeholder.phid }}
{% endif %}
Type
{{ device.type }}
Manufacturer
{{ device.manufacturer or ''}}
Model
{{ device.model or ''}}
Serial Number
{{ device.serial_number or ''}}
Incoming Lots
{% for lot in device.lots %} {% if lot.is_incoming %} {% endif %} {% endfor %}
Outgoing Lots
{% for lot in device.lots %} {% if lot.is_outgoing %} {% endif %} {% endfor %}
Temporary Lots
{% for lot in device.lots %} {% if lot.is_temporary %} {% endif %} {% endfor %}
Status Details
Physical State
{% if device.physical_status %} {{ device.physical_status.type }} {% endif %}
Lifecycle State
{% if device.status %} {{ device.status.type }} {% endif %}
Allocated State
{% if device.allocated_status %} {{ device.allocated_status.type }} {% endif %}
Rate Details
Rating
{{ device.rate or '' }}
Processor
{{ device.rate.processor or '' }}
RAM
{{ device.rate.ram or '' }}
Data storage
{{ device.rate.data_storage or '' }}
Traceability log Details
{% for action in device.reverse_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 %}