{% extends 'generic/_base.html' %} {% load helpers %} {% load i18n %} {% load static %} {% block title %}{% trans "Rack view" %}{% endblock %} {% block head %} {% endblock %} {% block content %}
{% trans "Select racks" %}
{% for field in filter_form %}
{{ field }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %}
{% trans "Reset" %}
{% if racks %}
{% trans "Export all racks:" %}
{% for rack in racks %}
{{ rack.name }}
{{ rack.site }}{% if rack.location %} · {{ rack.location }}{% endif %} · {{ rack.u_height }}U
{% for face, face_label in faces %}
{{ face_label }}
{% for unit in rack.elevation_unit_labels %}{{ unit }}{% endfor %}
{% for device in rack.elevation_devices %} {% if device.elevation_face == face %} {{ device.name|default:device.device_type.model }} U{{ device.position }} · {{ device.device_type }} {% endif %} {% endfor %}
{% endfor %}
{% endfor %}
{% trans "Cable topology" %}
{{ rack_topology|json_script:"rack-topology-data" }} {{ rack_export|json_script:"rack-export-data" }} {{ i18n|json_script:"rack-i18n-data" }}
{% trans "Cabling of the displayed racks" %} {{ cables|length }}
{% for row in cables %} {% empty %}{% endfor %}
{% trans "Cable" %}{% trans "A side" %}{% trans "B side" %}{% trans "Type" %}{% trans "Status" %}
{{ row.cable.label|default:row.cable }} {% if row.a %}{{ row.a.device_name }}
{{ row.a.name }}{% else %}—{% endif %}
{% if row.b %}{{ row.b.device_name }}
{{ row.b.name }}{% else %}—{% endif %}
{{ row.cable.type|default:'—' }}{{ row.cable.get_status_display }}
{% trans "No cabling found." %}
{% elif has_selection %}
{% trans "No occupied racks were found for this selection. Enable “Include empty racks” to show empty racks as well." %}
{% else %}
{% trans "Select one or more racks, or narrow the view by site and location." %}
{% endif %} {% endblock %} {% block javascript %} {% endblock %}