mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
fix checkbox styles
This commit is contained in:
parent
571804fec4
commit
fee7e19e40
@ -104,7 +104,7 @@
|
||||
</div>
|
||||
{% if bulk_nullable %}
|
||||
<div class="form-check">
|
||||
<input type="form-check-input" name="_nullify" value="{{ field.name }}" />
|
||||
<input type="checkbox" class="form-check-input" name="_nullify" value="{{ field.name }}" />
|
||||
<label class="form-check-label">Set Null</label>
|
||||
</div>
|
||||
{% if field.help_text %}
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user