Fixes #602: Correct display of custom integer fields with value of 0 or 1

This commit is contained in:
Jeremy Stretch 2016-10-05 15:29:16 -04:00
parent 73945899fe
commit 330abe5a2d

View File

@ -8,13 +8,13 @@
<tr> <tr>
<td>{{ field }}</td> <td>{{ field }}</td>
<td> <td>
{% if value == True %} {% if field.type == 300 and value == True %}
<i class="glyphicon glyphicon-ok text-success" title="True"></i> <i class="glyphicon glyphicon-ok text-success" title="True"></i>
{% elif value == False %} {% elif field.type == 300 and value == False %}
<i class="glyphicon glyphicon-remove text-danger" title="False"></i> <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
{% elif field.type == 500 and value %} {% elif field.type == 500 and value %}
{{ value|urlizetrunc:75 }} {{ value|urlizetrunc:75 }}
{% elif value %} {% elif field.type == 200 or value %}
{{ value }} {{ value }}
{% elif field.required %} {% elif field.required %}
<span class="text-warning">Not defined</span> <span class="text-warning">Not defined</span>