mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
Review feedback
This commit is contained in:
parent
e6c9e13047
commit
dbed518354
@ -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">
|
||||
|
@ -103,6 +103,10 @@ class TunnelTermination(CustomFieldsMixin, CustomLinksMixin, TagsMixin, ChangeLo
|
||||
null=True
|
||||
)
|
||||
|
||||
prerequisite_models = (
|
||||
'vpn.Tunnel',
|
||||
)
|
||||
|
||||
class Meta:
|
||||
ordering = ('tunnel', 'role', 'pk')
|
||||
constraints = (
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user