mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
fix checkbox styles
This commit is contained in:
@ -137,14 +137,17 @@ class ToggleColumn(tables.CheckBoxColumn):
|
||||
if 'attrs' not in kwargs:
|
||||
kwargs['attrs'] = {
|
||||
'td': {
|
||||
'class': 'min-width'
|
||||
'class': 'min-width',
|
||||
},
|
||||
'input': {
|
||||
'class': 'form-check-input'
|
||||
}
|
||||
}
|
||||
super().__init__(*args, default=default, visible=visible, **kwargs)
|
||||
|
||||
@property
|
||||
def header(self):
|
||||
return mark_safe('<input type="checkbox" class="toggle" title="Toggle all" />')
|
||||
return mark_safe('<input type="checkbox" class="toggle form-check-input" title="Toggle All" />')
|
||||
|
||||
|
||||
class BooleanColumn(tables.Column):
|
||||
|
Reference in New Issue
Block a user