mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Added 'select all' option to object lists for bulk edit/delete
This commit is contained in:
12
netbox/utilities/tables.py
Normal file
12
netbox/utilities/tables.py
Normal file
@ -0,0 +1,12 @@
|
||||
import django_tables2 as tables
|
||||
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
|
||||
class ToggleColumn(tables.CheckBoxColumn):
|
||||
default = ''
|
||||
visible = False
|
||||
|
||||
@property
|
||||
def header(self):
|
||||
return mark_safe('<input type="checkbox" name="_all" title="Select all" />')
|
Reference in New Issue
Block a user