1
0
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:
Jeremy Stretch
2016-06-01 13:30:33 -04:00
parent 7163e6e29a
commit b4619fad7a
8 changed files with 63 additions and 33 deletions

View 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" />')