1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added icon for boolean fields

This commit is contained in:
Jeremy Stretch
2016-08-17 13:40:06 -04:00
parent 8d99ad3099
commit b7a90dd09a

View File

@ -8,7 +8,11 @@
<tr>
<td>{{ field }}</td>
<td>
{% if value != None %}
{% if value == True %}
<i class="glyphicon glyphicon-ok text-success" title="True"></i>
{% elif value == False %}
<i class="glyphicon glyphicon-remove text-danger" title="False"></i>
{% elif value %}
{{ value }}
{% elif field.required %}
<span class="text-warning">Not defined</span>