|
@@ -4,6 +4,7 @@
|
|
|
{% load static %}
|
|
{% load static %}
|
|
|
{% load plugins %}
|
|
{% load plugins %}
|
|
|
{% load i18n %}
|
|
{% load i18n %}
|
|
|
|
|
+{% load mptt %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
|
{% block breadcrumbs %}
|
|
|
{{ block.super }}
|
|
{{ block.super }}
|
|
@@ -20,25 +21,24 @@
|
|
|
</h5>
|
|
</h5>
|
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
|
<table class="table table-hover attr-table">
|
|
<table class="table table-hover attr-table">
|
|
|
- {% with rack=object.rack %}
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Site" %}</th>
|
|
|
|
|
- <td>
|
|
|
|
|
- {% if rack.site.region %}
|
|
|
|
|
- {{ rack.site.region|linkify }} /
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {{ rack.site|linkify }}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Location" %}</th>
|
|
|
|
|
- <td>{{ rack.location|linkify|placeholder }}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Rack" %}</th>
|
|
|
|
|
- <td>{{ rack|linkify }}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- {% endwith %}
|
|
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th scope="row">{% trans "Region" %}</th>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ {% nested_tree object.rack.site.region %}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th scope="row">{% trans "Site" %}</th>
|
|
|
|
|
+ <td>{{ object.rack.site|linkify }}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th scope="row">{% trans "Location" %}</th>
|
|
|
|
|
+ <td>{{ object.rack.location|linkify|placeholder }}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th scope="row">{% trans "Rack" %}</th>
|
|
|
|
|
+ <td>{{ object.rack|linkify }}</td>
|
|
|
|
|
+ </tr>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|