mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -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,
|
||||
'rack_face': rack_face,
|
||||
'filter_form': forms.RackElevationFilterForm(request.GET),
|
||||
'model': self.queryset.model,
|
||||
})
|
||||
|
||||
|
||||
|
@ -35,6 +35,10 @@
|
||||
{% block content-wrapper %}
|
||||
<div class="tab-content">
|
||||
|
||||
{% if filter_form %}
|
||||
{% applied_filters model filter_form request.GET %}
|
||||
{% endif %}
|
||||
|
||||
{# Rack elevations #}
|
||||
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
||||
{% if page %}
|
||||
|
Loading…
Reference in New Issue
Block a user