{% extends "inventory/items.html" %} {% from "_helpers.html" import link_to_item, link_to_items, format_datetime, link_to_host, item_comment %} {% block title %}View {{ item.ics_id }} item{% endblock %} {% block items_nav %} {% endblock %} {% block items_main %}
ICS id
{{ item.ics_id }}
Created
{{ format_datetime(item.created_at) }}
Created by
{{ item.user }}
Updated
{{ format_datetime(item.updated_at) }}
Serial number
{{ item.serial_number }}
Quantity
{{ item.quantity }}
Manufacturer
{{ item.manufacturer }}
Model
{{ item.model }}
{% if item.model.description %}
Model description
{{ item.model.description }}
{% endif %}
Location
{{ item.location }}
Status
{{ item.status }}
{% if item.host %}
Host
{{ link_to_host(item.host) }}
{% endif %} {% if item.stack_member is not none %}
Stack member
{{ item.stack_member }}
{% endif %} {% for mac in item.macs %} {% set macloop = loop %}
MAC Address{{ loop.index }}
{{ mac.address }}
{% for interface in mac.interfaces %}
Interface{{ macloop.index }}-{{ loop.index }}
IP: {{ interface.ip }} / name: {{ interface.name }}
{% endfor %} {% endfor %}
Parent
{{ link_to_item(item.parent) }}
Children
{{ link_to_items(item.children) }}

Comments

{% block comments %} {% for comment in item.comments | sort(attribute='created_at') %} {{ item_comment(comment) }} {% endfor %} {% endblock %} {% block comment_item %} Comment {% endblock %}

History

{% for version in item.history() %} {% endfor %}
Updated Quantity Location Status Parent
{{ version['updated_at'] }} {{ version['quantity'] }} {{ version['location'] }} {{ version['status'] }} {{ link_to_item(version['parent']) }}
{%- endblock %}