소스 검색

Added icon for boolean fields

Jeremy Stretch 9 년 전
부모
커밋
b7a90dd09a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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>