2016-08-15 15:24:23 -04:00
|
|
|
{% if custom_fields %}
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Custom Fields</strong>
|
|
|
|
</div>
|
2016-12-14 17:09:33 -05:00
|
|
|
<table class="table table-hover panel-body attr-table">
|
2016-08-15 15:24:23 -04:00
|
|
|
{% for field, value in custom_fields.items %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ field }}</td>
|
|
|
|
<td>
|
2016-10-05 15:29:16 -04:00
|
|
|
{% if field.type == 300 and value == True %}
|
2016-08-17 13:40:06 -04:00
|
|
|
<i class="glyphicon glyphicon-ok text-success" title="True"></i>
|
2016-10-05 15:29:16 -04:00
|
|
|
{% elif field.type == 300 and value == False %}
|
2016-08-17 13:40:06 -04:00
|
|
|
<i class="glyphicon glyphicon-remove text-danger" title="False"></i>
|
2016-08-23 16:45:26 -04:00
|
|
|
{% elif field.type == 500 and value %}
|
2016-10-14 11:08:09 -04:00
|
|
|
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
|
2016-10-05 15:29:16 -04:00
|
|
|
{% elif field.type == 200 or value %}
|
2016-08-15 15:24:23 -04:00
|
|
|
{{ value }}
|
|
|
|
{% elif field.required %}
|
|
|
|
<span class="text-warning">Not defined</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|