{% extends 'generic/object.html' %} {% load helpers %} {% load humanize %} {% load plugins %} {% block title %}{{ object }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% endblock %} {% block content %}
Asset
Name {{ object.name|placeholder }}
Description {{ object.description|placeholder }}
Asset Tag {% if object.asset_tag %} {{ object.asset_tag }} {% else %} {{ ''|placeholder }} {% endif %}
Serial Number {% if object.serial %} {{ object.serial }} {% else %} {{ ''|placeholder }} {% endif %}
Status {% badge object.get_status_display bg_color=object.get_status_color %}
Role {% if object.role %} {% badge object.role.name hex_color=object.role.color url=object.role.get_absolute_url %} {% else %} — {% endif %}
{{ object.get_kind_display }} Type {{ object.hardware_type.manufacturer }} {{ object.hardware_type }}
Storage Location {% if object.storage_location %} {{ object.storage_location.site }} / {% endif %} {{ object.storage_location|linkify|placeholder }}
Assigned To
{# only show create button if user has add permissions for the kind of hardware being created #} {# django templates don't support parenthesis in if statements, but and has priority over or #} {% if object.kind == 'device' and perms.dcim.add_device or object.kind == 'module' and perms.dcim.add_module or object.kind == 'rack' and perms.dcim.add_rack %} {% 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_assets.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 %}
Ownership
Owning tenant {{ object.owning_tenant|linkify|placeholder }}
{% 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 %}