{% extends 'base.html' %} {% load i18n %} {% block content %}

{{ object.shortid }}

{% if state_definitions %} {% else %} {% endif %}
{% trans 'Details' %}

{% trans 'Phid' %}
{{ object.id }}
{% if object.is_eraseserver %}
{% trans 'Is an erase server' %}
{% trans 'Yes' %}
{% endif %}
{% trans 'Type' %}
{{ object.type }}
{% if object.is_websnapshot and object.last_user_evidence %} {% for k, v in object.last_user_evidence.items %}
{{ k }}
{{ v|default:'' }}
{% endfor %} {% else %}
{% trans 'Manufacturer' %}
{{ object.manufacturer|default:'' }}
{% trans 'Model' %}
{{ object.model|default:'' }}
{% trans 'Serial Number' %}
{{ object.serial_number|default:'' }}
{% endif %}
{% trans 'Identifiers' %}
{% for chid in object.hids %}
{{ chid|default:'' }}
{% endfor %}
{% trans 'Current State' %}

{% if device_states %} {% else %} {% endif %}
{% trans 'State' %} {% trans 'User' %} {% trans 'Date' %}
{{ device_states.0.state }} {{ device_states.0.user.responsable_person|default:device_states.0.user.username }} {{ device_states.0.date|date:"SHORT_DATETIME_FORMAT" }}
{% trans 'No state recorded.' %}
{% if last_note %}
{% trans 'Note' %}
{{ object.last_state.note }}
{% endif %}
{% trans 'History of States' %}
{% for state_change in device_states %} {% empty %} {% endfor %}
{% trans 'Date' %} {% trans 'User' %} {% trans 'State' %}
{{ state_change.state }} {{ state_change.user.responsable_person|default:state_change.user.username }} {{ state_change.date|date:"SHORT_DATETIME_FORMAT" }}
{% trans 'No state changes recorded.' %}
{% trans 'User properties' %}
{% for a in object.get_user_properties %} {% endfor %}
{% trans 'Key' %} {% trans 'Value' %} {% trans 'Created on' %}
{{ a.key }} {{ a.value }} {{ a.created }}
{% for a in object.get_user_properties %} {% endfor %} {% for a in object.get_user_properties %} {% endfor %}
{% trans 'Documents' %}
{% for a in object.get_user_documents %} {% endfor %}
{% trans 'Key' %} {% trans 'Value' %} {% trans 'Created on' %}
{{ a.key }} {{ a.value }} {{ a.created }}
{% for tag in lot_tags %}
{{ tag }}
{% for lot in object.lots %} {% if lot.type == tag %} {% endif %} {% endfor %} {% endfor %}
{% trans 'Components last evidence' %}
{% for c in object.components %}
{{ c.type }}
{{ evidence.created }}

{% for k, v in c.items %} {% if k not in 'actions,type' %} {{ k }}: {{ v }}
{% endif %} {% endfor %}

{% endfor %}
{% trans 'List of evidences' %}
{% for snap in object.evidences %}
{{ snap.created }}

{{ snap.uuid }}

{% endfor %}
{% if state_definitions %} {% for state in state_definitions %} {% endfor %} {% endif %} {% endblock %} {% block extrascript %} {% endblock %}