mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
* Added filter badge in rack elevation * Tweak template context Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
This commit is contained in:
parent
b7cdbd3d41
commit
ccb2966c4c
@ -691,6 +691,7 @@ class RackElevationListView(generic.ObjectListView):
|
|||||||
'sort_choices': ORDERING_CHOICES,
|
'sort_choices': ORDERING_CHOICES,
|
||||||
'rack_face': rack_face,
|
'rack_face': rack_face,
|
||||||
'filter_form': forms.RackElevationFilterForm(request.GET),
|
'filter_form': forms.RackElevationFilterForm(request.GET),
|
||||||
|
'model': self.queryset.model,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,6 +35,10 @@
|
|||||||
{% block content-wrapper %}
|
{% block content-wrapper %}
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
|
||||||
|
{% if filter_form %}
|
||||||
|
{% applied_filters model filter_form request.GET %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# Rack elevations #}
|
{# Rack elevations #}
|
||||||
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
||||||
{% if page %}
|
{% if page %}
|
||||||
|
Loading…
Reference in New Issue
Block a user