From 2c9aa86bf004c0543df6fd992aaca10e8744cd6e Mon Sep 17 00:00:00 2001 From: checktheroads Date: Thu, 22 Apr 2021 18:57:43 -0700 Subject: [PATCH] fix checkbox styles --- netbox/templates/utilities/render_field.html | 2 +- netbox/utilities/tables.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/netbox/templates/utilities/render_field.html b/netbox/templates/utilities/render_field.html index 79d69561a..3381fadea 100644 --- a/netbox/templates/utilities/render_field.html +++ b/netbox/templates/utilities/render_field.html @@ -104,7 +104,7 @@ {% if bulk_nullable %}
- +
{% if field.help_text %} diff --git a/netbox/utilities/tables.py b/netbox/utilities/tables.py index 45f87b372..01b524b37 100644 --- a/netbox/utilities/tables.py +++ b/netbox/utilities/tables.py @@ -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('') + return mark_safe('') class BooleanColumn(tables.Column):