Skip to content

Commit 4309df4

Browse files
committed
#19002: Display boolean attributes as checkmarks
1 parent d55f02b commit 4309df4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

netbox/templates/dcim/moduletype.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ <h2 class="card-header">{% trans "Attributes" %}</h2>
7575
{% for k, v in object.attributes.items %}
7676
<tr>
7777
<th scope="row">{{ k }}</th>
78-
<td>{{ v|placeholder }}</td>
78+
<td>
79+
{% if v is True or v is False %}
80+
{% checkmark v %}
81+
{% else %}
82+
{{ v|placeholder }}
83+
{% endif %}
84+
</td>
7985
</tr>
8086
{% endfor %}
8187
</table>

0 commit comments

Comments
 (0)