Include peer terminations on TunnelTermination view

This commit is contained in:
Jeremy Stretch 2023-11-22 11:34:37 -05:00
parent 667bebdd04
commit 3cf53cef8f

View File

@ -16,7 +16,7 @@
</tr> </tr>
<tr> <tr>
<th scope="row">{% trans "Role" %}</th> <th scope="row">{% trans "Role" %}</th>
<td>{{ object.get_role_display }}</td> <td>{% badge object.get_role_display bg_color=object.get_role_color %}</td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">
@ -49,6 +49,13 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col col-md-12"> <div class="col col-md-12">
<div class="card">
<h5 class="card-header">{% trans "Peer Terminations" %}</h5>
<div class="card-body htmx-container table-responsive"
hx-get="{% url 'vpn:tunneltermination_list' %}?tunnel_id={{ object.tunnel.pk }}&id__n={{ object.pk }}"
hx-trigger="load"
></div>
</div>
{% plugin_full_width_page object %} {% plugin_full_width_page object %}
</div> </div>
</div> </div>