Improve cable termination panel layout

This commit is contained in:
jeremystretch 2022-05-18 12:56:16 -04:00
parent 75eea50d71
commit 922916ae99

View File

@ -2,26 +2,20 @@
<table class="table table-hover panel-body attr-table">
{% if terminations.0.device %}
{# Device component #}
<tr>
<td>Site</td>
<td>{{ terminations.0.device.site|linkify }}</td>
</tr>
<tr>
<td>Device</td>
<td>{{ terminations.0.device|linkify }}</td>
</tr>
<tr>
<td>Site</td>
<td>{{ terminations.0.device.site|linkify }}</td>
<td>Rack</td>
<td>{{ terminations.0.device.rack|linkify|placeholder }}</td>
</tr>
{% if terminations.0.device.rack %}
<tr>
<td>Rack</td>
<td>{{ terminations.0.device.rack|linkify }}</td>
</tr>
{% endif %}
<tr>
<td>Type</td>
<td>{{ terminations.0|meta:"verbose_name"|capfirst }}</td>
</tr>
<tr>
<td>Name(s)</td>
<td>
{% for term in terminations %}
{{ term|linkify }}{% if not forloop.last %},{% endif %}