{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% load i18n %} {% block content %}

{% trans "Design" %}

{% trans "Title" %} {{ object.title }}
{% trans "Site" %} {{ object.site|linkify }}
{% trans "Status" %} {% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Summary" %} {{ object.summary|placeholder }}
{% trans "Link" %} {% if object.link %} {{ object.link }} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Group" %} {{ object.group|linkify|placeholder }}

{% trans "Versioning & Sequencing" %}

{% trans "Version" %} v{{ object.version }}
{% trans "Based on" %} {{ object.based_on|linkify|placeholder }}
{% trans "Sequence" %} {{ object.sequence }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/comments.html' %} {% plugin_left_page object %}

{% trans "Dependencies" %}

{% trans "Depends on" %} {% with deps=object.depends_on.all %} {% if deps %}
    {% for dep in deps %}
  • {{ dep|linkify }}
  • {% endfor %}
{% else %} {{ ''|placeholder }} {% endif %} {% endwith %}
{% trans "Required by" %} {% with rev=object.dependents.all %} {% if rev %}
    {% for dep in rev %}
  • {{ dep|linkify }}
  • {% endfor %}
{% else %} {{ ''|placeholder }} {% endif %} {% endwith %}
{% include 'inc/panels/tags.html' %} {% plugin_right_page object %}

{% trans "Placements" %} {% if perms.netbox_rack_design.add_designplacement %} {% endif %}

{% htmx_table 'plugins:netbox_rack_design:designplacement_list' design_id=object.pk %}

{% trans "Racks" %} {% if scoped_racks or perms.netbox_rack_design.change_design %}
{% if scoped_racks %} {% trans "View elevation" %} {% endif %} {% if perms.netbox_rack_design.change_design %} {# Targets the default (no-rack) editor route so it works even when #} {# the design has no scoped racks yet (add the first rack inside). #} {% trans "Open editor" %} {% endif %}
{% endif %}

{% for rack in scoped_racks %} {% empty %} {% endfor %}
{% trans "Rack" %} {% trans "Site" %} {% trans "Location" %} {% trans "Actions" %}
{{ rack|linkify }} {{ rack.site|linkify|placeholder }} {{ rack.location|linkify|placeholder }} {% trans "View elevation" %} {% if perms.netbox_rack_design.change_design %} {% trans "Edit layout" %} {% endif %}
{% trans "No racks in scope yet" %}

{% trans "Affected racks" %}

{% for rack in affected_racks %} {% empty %} {% endfor %}
{% trans "Rack" %} {% trans "Site" %} {% trans "Actions" %}
{{ rack|linkify }} {{ rack.site|linkify|placeholder }} {% trans "View elevation" %} {% if perms.netbox_rack_design.change_design %} {% trans "Edit layout" %} {% endif %}
{% trans "No racks affected yet" %}
{% plugin_full_width_page object %}
{% endblock content %}