{% load helpers %} {% if custom_fields %}
Custom Fields
{% for grouping, fields in custom_fields.items %} {% with forloop.counter0 as count %} {% if grouping != "" %} {% endif %} {% for field, value in fields %} {% endfor %} {% endwith %} {% endfor %}
{{ field }} {% if field.type == 'boolean' %} {{ value | render_boolean }} {% elif field.type == 'url' and value %} {{ value|truncatechars:70 }} {% elif field.type == 'multi-select' and value %} {{ value|join:", " }} {% elif field.type == 'markdown' and value %} {{ value|render_markdown }} {% elif field.type == 'json' and value is not None %}

{{ value|render_json }}
{% elif value or value == 0 %} {{ value }} {% elif field.required %} Not defined {% else %} {% endif %}
{% endif %}