{% extends 'portmanager/device_object.html' %} {% load render_table from django_tables2 %} {% load static %} {% load helpers %} {% load plugins %} {% block content %}
Device
Name {{ object|linkify }}
Device Type {{ object.device_type }} ({{ object.device_type.u_height|floatformat }}U)
Serial Number {{ object.serial|placeholder }}
Asset Tag {{ object.asset_tag|placeholder }}
Comments {{ object.comments|placeholder }}
Organization
Region {% if object.site.region %} {% for region in object.site.region.get_ancestors %} {{ region|linkify }} / {% endfor %} {{ object.site.region|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
Site {{ object.site|linkify }}
Location {% if object.location %} {% for location in object.location.get_ancestors %} {{ location|linkify }} / {% endfor %} {{ object.location|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
Rack {% if object.rack %} {{ object.rack|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
Position {% if object.parent_bay %} {% with object.parent_bay.device as parent %} {{ parent|linkify }} / {{ object.parent_bay }} {% if parent.position %} (U{{ parent.position|floatformat }} / {{ parent.get_face_display }}) {% endif %} {% endwith %} {% elif object.rack and object.position %} U{{ object.position|floatformat }} / {{ object.get_face_display }} {% elif object.rack and object.device_type.u_height %} Not racked {% else %} {{ ''|placeholder }} {% endif %}
Tenant {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
{% csrf_token %}
{% if deploy_perms %}
{% endif %}
{# Object table #}
{% include 'portmanager/htmx/table.html' %}
{% if deploy_perms %}
{% endif %}
{% plugin_full_width_page object %}
{% endblock %}