{% if fieldsets %}
{% for fieldset in fieldsets %}
{% include "report_builder/fieldsets.html" with fieldset=fieldset %}
{% endfor %}
{% else %}
{% for field in fields %}
{% include "report_builder/fieldset.html" with verbose_name_extra=field.get_internal_type %}
{% endfor %}
{% endif %}
{% if custom_fields %}
Custom Fields
{% for custom_field in custom_fields %}
{% include "report_builder/fieldset.html" with field=custom_field verbose_name_extra=custom_field.get_field_type_display verbose_name=custom_field.name custom=True %}
{% endfor %}
{% endif %}
{% if properties %}
Properties
{% for property in properties %}
{% if forloop.first %}
{% endif %}
{% include "report_builder/fieldset.html" with field=property verbose_name_extra='property' verbose_name=property.label %}
{% endfor %}