Review feedback

This commit is contained in:
Jeremy Stretch 2023-11-27 12:28:29 -05:00
parent e6c9e13047
commit dbed518354
3 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,14 @@
{% load plugins %}
{% load i18n %}
{% block extra_controls %}
{% if perms.vpn.add_tunneltermination %}
<a href="{% url 'vpn:tunneltermination_add' %}?tunnel={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary">
<i class="mdi mdi-plus-thick"></i> {% trans "Add Termination" %}
</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col col-md-6">

View File

@ -103,6 +103,10 @@ class TunnelTermination(CustomFieldsMixin, CustomLinksMixin, TagsMixin, ChangeLo
null=True
)
prerequisite_models = (
'vpn.Tunnel',
)
class Meta:
ordering = ('tunnel', 'role', 'pk')
constraints = (

View File

@ -213,7 +213,7 @@ class IPSecPolicyTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = IPSecPolicy
fields = (
'pk', 'id', 'name', 'proposals', 'pfs_group', 'tags', 'created', 'last_updated',
'pk', 'id', 'name', 'proposals', 'pfs_group', 'description', 'tags', 'created', 'last_updated',
)
default_columns = (
'pk', 'name', 'proposals', 'pfs_group', 'description',