1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #8192: Add "add prefix" button to aggregate child prefixes view

This commit is contained in:
jeremystretch
2021-12-30 12:00:37 -05:00
parent 68f92dfd5d
commit 2fa8e27f05
4 changed files with 34 additions and 21 deletions

View File

@@ -3,6 +3,11 @@
{% block extra_controls %}
{% include 'ipam/inc/toggle_available.html' %}
{% if perms.ipam.add_prefix and first_available_prefix %}
<a href="{% url 'ipam:prefix_add' %}?prefix={{ first_available_prefix }}" class="btn btn-sm btn-primary">
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Prefix
</a>
{% endif %}
{{ block.super }}
{% endblock %}