{% extends 'generic/object.html' %}
{% load helpers %}
{% load plugins %}
{% load i18n %}
{% block content %}
{# T1.9 decision 3: an unrealized planned rack whose (location, name) now #}
{# matches a real dcim.Rack is worse than dead weight -- Apply would ADOPT #}
{# that rack (D5) the moment this row is used, so surface it loudly rather #}
{# than leaving a planner to discover it only when Apply behaves #}
{# differently than expected. #}
{% if object.matches_existing_rack %}
{% trans "A real rack already exists at this location with this name. Applying a design that uses this planned rack will adopt that existing rack (its attributes win), not create a new one." %}
{% endif %}
| {% trans "Name" %} |
{{ object.name }} |
| {% trans "Location" %} |
{{ object.location|linkify }} |
| {% trans "Site" %} |
{{ object.site|linkify|placeholder }} |
| {% trans "U height" %} |
{{ object.u_height }} |
{# Set only once a design using this planned rack is applied #}
{# (PLAN-templates.md D7) -- from then on every design derefs #}
{# through this to the real rack. #}
| {% trans "Realized rack" %} |
{{ object.realized_rack|linkify|placeholder }} |
| {% trans "Description" %} |
{{ object.description|placeholder }} |
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/comments.html' %}
{% plugin_left_page object %}
{# Who is standing in the way of a delete -- and where to go to fix it. #}
{% if referencing_designs %}
{% else %}
{% trans "No design plans across this rack, so it can be deleted." %}
{% endif %}
{% include 'inc/panels/tags.html' %}
{% plugin_right_page object %}
{% plugin_full_width_page object %}
{% endblock content %}