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

Closes #7665 add new boolen for filtering assigned prefixes, adjust current filter for avaliabile prefixes to only return avaliable

This commit is contained in:
Will Irvine
2021-11-13 13:27:49 +13:00
parent 8f1acb700d
commit 0edf9b17f6
3 changed files with 27 additions and 10 deletions

View File

@@ -1,5 +1,16 @@
{% load helpers %}
{% if show_assigned is not None %}
<div class="btn-group" role="group">
<a href="{{ request.path }}{% querystring request show_assigned='true' %}" class="btn btn-sm btn-outline-primary{% if show_assigned %} active disabled{% endif %}">
<i class="mdi mdi-eye"></i> Show Assigned
</a>
<a href="{{ request.path }}{% querystring request show_assigned='false' %}" class="btn btn-sm btn-outline-primary{% if not show_assigned %} active disabled{% endif %}">
<i class="mdi mdi-eye-off"></i> Hide Assigned
</a>
</div>
{% endif %}
{% if show_available is not None %}
<div class="btn-group" role="group">
<a href="{{ request.path }}{% querystring request show_available='true' %}" class="btn btn-sm btn-outline-primary{% if show_available %} active disabled{% endif %}">