{% load i18n cms_tags %} {% load url from future %} {% regroup object_list|dictsort:"category_id" by category as qgroups %}
{% for qgroup in qgroups %} {% if list %}

{{ qgroup.grouper }}

{% endif %} {% for question in qgroup.list %} {% render_model question "title" %} {% if not list %}{{ qgroup.grouper }}{% endif %} {% endfor %} {% empty %} {% if list %}

{{ qgroup.grouper|default:_("Category") }}

{% endif %}

{% trans "No entry found." %}

{% endfor %}
{% if list and title %} {% endif %}