Browse Source

Added icon for boolean fields

Jeremy Stretch 8 years ago
parent
commit
b7a90dd09a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      netbox/templates/inc/custom_fields_panel.html

+ 5 - 1
netbox/templates/inc/custom_fields_panel.html

@@ -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>