{% extends "admin/base_site.html" %} {% comment %} This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. {% endcomment %} {% load proto_tags %} {% load i18n proto_tags admin_static %} {% load l10n %} {% block extrahead %} {% load static %} {% get_static_prefix as STATIC_PREFIX %} {% endblock %} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {% block content %}

Diagrama de Racks Frontal

Filtro
Data Centers {% if not dc %} {% endif %}
{% if dcs %}
 Mostrar stencils
 Mostrar legendas
 Mostrar descrição.

 Mostrar visão traseira do Rack.
 Mostrar outros equipamentos.
 Mostrar avisos.



{% for dc in dcs %} {% if not forloop.first %}
{% endif %}

{{ dc.entidade }} - {{ dc.nome|default:'' }}

{% for fileira in dc.fileiras %}

{% for rack in fileira.racks %}

{{ rack.nome|default:'' }} ({{ rack.vazio }} ocupado)

{% for eq in rack.equipamentos_pdu %} {% if eq.pos_col == 'LE' %} {% if eq.id %} {% endif %}
{% if eq.imagem %}{% endif %}
{% if eq.id %}
{% endif %} {% endif %} {% endfor %}
{% for i in rack.altura_count reversed %}
{{ i }}
{% endfor %}
{% for eq in rack.equipamentos_pdu %} {% if eq.pos_col == 'LD' %} {% if eq.id %} {% endif %}
{% if eq.imagem %}{% endif %}
{% if eq.id %}
{% endif %} {% endif %} {% endfor %}
{# rack visão traseira #}

{{ rack.nome|default:'' }} (Visão traseira)

{% for eq in rack.equipamentos_pdu %} {% if eq.pos_col == 'TE' %} {% if eq.id %} {% endif %}
{% if eq.imagem %}{% endif %}
{% if eq.id %}
{% endif %} {% endif %} {% endfor %}
{% for i in rack.altura_count reversed %}
{{ i }}
{% endfor %}
{% for eq in rack.equipamentos_pdu %} {% if eq.pos_col == 'TD' %} {% if eq.id %} {% endif %}
{% if eq.imagem %}{% endif %}
{% if eq.id %}
{% endif %} {% endif %} {% endfor %}
{% if rack.equipamentos_fora_visao %}
{% for eq in rack.equipamentos_fora_visao %} {% endfor %}
Outros equipamentos.
Desc Tam Pos Col
{{ eq.nome|default:'' }}{{ eq.descricao|truncatechars:45 }} {{ eq.tam }} {{ eq.pos }} {{ eq.pos_col|default:'-' }}
{% endif %} {% if rack.conflitos %}
Avisos!
{% for conflito in rack.conflitos %} {% if conflito.eq1 %} {% endif %} {% if conflito.eq2 %} {% endif %} {% endfor %}
EQ Pos Alt
{{ conflito.obs }}
{{ conflito.eq1.descricao }} {{ conflito.eq1.pos }} {{ conflito.eq1.tam }}
{{ conflito.eq2.descricao }} {{ conflito.eq2.pos }} {{ conflito.eq2.tam }}
{% endif %}
{# div do rack #}
{% endfor %}{# ENDFOR RACK #} {% endfor %}{# ENDFOR FILEIRA #}
{% endfor %}{# ENDFOR DC #} {% endif %} {% endblock %}