mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
Review feedback
This commit is contained in:
parent
e6c9e13047
commit
dbed518354
@ -3,6 +3,14 @@
|
|||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
{% load i18n %}
|
{% 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 %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-6">
|
<div class="col col-md-6">
|
||||||
|
@ -103,6 +103,10 @@ class TunnelTermination(CustomFieldsMixin, CustomLinksMixin, TagsMixin, ChangeLo
|
|||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
prerequisite_models = (
|
||||||
|
'vpn.Tunnel',
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('tunnel', 'role', 'pk')
|
ordering = ('tunnel', 'role', 'pk')
|
||||||
constraints = (
|
constraints = (
|
||||||
|
@ -213,7 +213,7 @@ class IPSecPolicyTable(NetBoxTable):
|
|||||||
class Meta(NetBoxTable.Meta):
|
class Meta(NetBoxTable.Meta):
|
||||||
model = IPSecPolicy
|
model = IPSecPolicy
|
||||||
fields = (
|
fields = (
|
||||||
'pk', 'id', 'name', 'proposals', 'pfs_group', 'tags', 'created', 'last_updated',
|
'pk', 'id', 'name', 'proposals', 'pfs_group', 'description', 'tags', 'created', 'last_updated',
|
||||||
)
|
)
|
||||||
default_columns = (
|
default_columns = (
|
||||||
'pk', 'name', 'proposals', 'pfs_group', 'description',
|
'pk', 'name', 'proposals', 'pfs_group', 'description',
|
||||||
|
Loading…
Reference in New Issue
Block a user