{% 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 %}
Documents
File |
Type |
Description |
Uploaded on |
|
|
{% for doc in placeholder.documents %}
{% if doc.get_url() %}
{{ doc.file_name}}
{% else %}
{{ doc.file_name}}
{% endif %}
|
{{ doc.type }}
|
{% if doc.description %}
{{ doc.description|truncate(30, True) }}
{% endif %}
|
{{ doc.created.strftime('%Y-%m-%d %H:%M') }}
|
|
Are you sure that you want to delete this Document?
{{ doc.file_name }}
This action cannot be undone.
|
{% 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 %}
Proofs
{% for proof in placeholder.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 %}