From 3444dc503d130f108ab85d168f0b3ab990ca5ca4 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 14 Apr 2025 08:57:15 -0400 Subject: [PATCH] #19002: Display boolean attributes as checkmarks (#19168) --- netbox/templates/dcim/moduletype.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/netbox/templates/dcim/moduletype.html b/netbox/templates/dcim/moduletype.html index adc5e2a98..1c77a33c7 100644 --- a/netbox/templates/dcim/moduletype.html +++ b/netbox/templates/dcim/moduletype.html @@ -75,7 +75,13 @@ {% for k, v in object.attributes.items %} {{ k }} - {{ v|placeholder }} + + {% if v is True or v is False %} + {% checkmark v %} + {% else %} + {{ v|placeholder }} + {% endif %} + {% endfor %}