From 4309df4ebbaad65d3ab58a3a83fc28a14302e908 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 14 Apr 2025 08:16:53 -0400 Subject: [PATCH] #19002: Display boolean attributes as checkmarks --- 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 %}