Clean up termination attrs display

This commit is contained in:
Jeremy Stretch 2024-10-31 08:43:46 -04:00
parent 843fe3498b
commit eeb9c6b1b2

View File

@ -1,18 +1,19 @@
{% load helpers %}
{% load i18n %}
{% if termination.termination %}
<tr>
<th scope="row">{% trans "Termination" %}</th>
<th scope="row">{% trans "Termination point" %}</th>
{% if termination.termination %}
<td>{{ termination.termination|linkify }} ({% trans termination.termination_type.name %})</td>
<td>
{{ termination.termination|linkify }}
<div class="fs-5 text-muted">{% trans termination.termination_type.name|bettertitle %}</div>
</td>
{% else %}
<td>{{ ''|placeholder }}</td>
{% endif %}
</tr>
<tr>
<th scope="row">{% trans "Termination" %}</th>
<th scope="row">{% trans "Connection" %}</th>
<td>
{% if termination.mark_connected %}
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
@ -57,12 +58,6 @@
{% endif %}
</td>
</tr>
{% else %}
<tr>
<th scope="row">{% trans "Provider Network" %}</th>
<td>{{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}</td>
</tr>
{% endif %}
<tr>
<th scope="row">{% trans "Speed" %}</th>
<td>