Skip to content

Commit

Permalink
16733 fix bulk edit/delete buttons with quick search
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Aug 12, 2024
1 parent 8f1ace2 commit 5feb0a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions netbox/netbox/views/generic/bulk_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def get(self, request):
table.columns.hide('pk')
return render(request, 'htmx/table.html', {
'table': table,
'model': model,
'actions': actions,
})

context = {
Expand Down
8 changes: 4 additions & 4 deletions netbox/templates/generic/object_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@
<div class="card-body">
<div class="float-end">
{% if 'bulk_edit' in actions %}
<div class="bulk-edit-button">
<span class="bulk-edit-button">
{% bulk_edit_button model query_params=request.GET %}
</div>
</span>
{% endif %}
{% if 'bulk_delete' in actions %}
<div class="bulk-delete-button">
<span class="bulk-delete-button">
{% bulk_delete_button model query_params=request.GET %}
</div>
</span>
{% endif %}
</div>
<div class="form-check">
Expand Down

0 comments on commit 5feb0a2

Please sign in to comment.