{% if placeholder.status in ['Snapshot', 'Placeholder'] %}
New Twin
{% elif placeholder.status == 'Twin' %}
Delete Twin
{% endif %}
Editable details
Phid
{{ placeholder.phid }}
Id device internal
{{ placeholder.id_device_internal or '' }}
Type
{{ placeholder.device.type }}
Manufacturer
{{ placeholder.device.manufacturer or ''}}
Model
{{ placeholder.device.model or ''}}
Part Number
{{ placeholder.device.part_number or ''}}
Serial Number
{{ placeholder.device.serial_number or ''}}
{% if placeholder.binding %}
Fixed details
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 Placeholder
{{ placeholder.components or '' }}
{% if placeholder.binding %}
Components Snapshot
{% 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.binding %}
Digital Passports
{% for dpp in placeholder.binding.dpps %}
Time Stamp
{{ dpp.timestamp }}
{% endfor %}
{% endif %}
{% if placeholder.binding %}
Proofs
{% for proof in placeholder.binding.proofs %}
Time Stamp
{{ proof.timestamp }}
{{ proof.type }}
{{ proof.created.strftime('%H:%M %d-%m-%Y') }}
{% endfor %}
{% for component in placeholder.binding.components %}
{% for proof in component.proofs %}
Time Stamp
{{ proof.timestamp }}
{{ proof.type }}
{{ proof.created.strftime('%H:%M %d-%m-%Y') }}
{% endfor %}
{% endfor %}
{% endif %}