{% extends 'generic/object.html' %} {% load helpers %} {% load humanize %} {% load plugins %} {% block title %}{{ object.hardware_type.manufacturer }} {{ object }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% endblock %} {% block content %}
Asset
{% if object.kind == 'inventoryitem' %} {% endif %}
Name {{ object.name|placeholder }}
Asset Tag {{ object.asset_tag|placeholder }}
Serial Number {{ object.serial|placeholder }}
Status {% badge object.get_status_display bg_color=object.get_status_color %}
{{ object.get_kind_display }} Type {{ object.hardware_type.manufacturer }} {{ object.hardware_type }}
Inventory Item Group {% if object.inventoryitem_type.inventoryitem_group %} {% for group in object.inventoryitem_type.inventoryitem_group.get_ancestors %} {{ group|linkify }} / {% endfor %} {{ object.inventoryitem_type.inventoryitem_group|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
Storage Location {% if object.storage_location %} {{ object.storage_location.site }} / {% endif %} {{ object.storage_location|linkify|placeholder }}
Assigned To
{# only show create button if use has add permissions for the kind of hardware being created #} {% if object.kind == 'device' and perms.dcim.add_device or object.kind == 'module' and perms.dcim.add_module or object.kind == 'inventoryitem' and perms.dcim.add_inventoryitem %} {% if object.hardware %} Create {{ object.get_kind_display }} {% else %} Create {{ object.get_kind_display }} {% endif %} {% endif %} {# only show edit button if user has change permission on asset #} {% if perms.netbox_inventory.change_asset %} Edit Assignment {% endif %}
Tenant {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
Contact {% if object.contact.group %} {{ object.contact.group|linkify }} / {% endif %} {{ object.contact|linkify|placeholder }}
{{ object.get_kind_display }} {{ object.hardware|linkify|placeholder }}
Installed Location
Site {{ object.installed_site|linkify|placeholder }}
Location {% if object.installed_location %} {% for location in object.installed_location.get_ancestors %} {{ location|linkify }} / {% endfor %} {{ object.installed_location|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
Rack {{ object.installed_rack|linkify|placeholder }}
Device {{ object.installed_device|linkify|placeholder }}
{% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
Purchase
Owner {{ object.owner|linkify|placeholder }}
Purchase {{ object.purchase|linkify|placeholder }}{% if object.purchase.date %} on {{ object.purchase.date|isodate }}{% endif %}
Delivery {{ object.delivery|linkify:'name'|placeholder }}{% if object.delivery.date %} on {{ object.delivery.date|isodate }}{% endif %}
Warranty start {{ object.warranty_start|isodate|placeholder }}
Warranty end {{ object.warranty_end|isodate|placeholder }}
Warranty remaining {% include warranty_progressbar with record=object %}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %}
{% plugin_full_width_page object %}
{% endblock content %}