{% extends "admin/base_site.html" %} {% load i18n static %} {% comment %} Responses as a table, with a column per question. The whole state of it lives in the query string -- filters, columns, page -- so a filtered view is a link someone can send, and the CSV button is that same link with `/export/` in it. {% endcomment %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% if table.versions %}
{% endif %}
{% translate "Export CSV" %} {% translate "The plain list" %}
{% blocktranslate count counter=table.selected|length %}{{ counter }} column{% plural %}{{ counter }} columns{% endblocktranslate %}

{% translate "Untick what you do not need. The CSV takes whatever is left, so the download matches what is on screen." %} {% if not table.questionnaire %} {% translate "Pick a questionnaire to get a column per question." %} {% endif %}

{% for group in table.column_groups %}

{{ group.title }}

{% for column in group.columns %} {% endfor %}
{% endfor %}
{% for column in table.selected %}{% endfor %} {% for row in table.cells %} {% for cell in row.cells %}{% endfor %} {% empty %} {% endfor %}
{{ column.label }}
{{ cell|default:"—"|truncatechars:80 }}
{% translate "Nothing answered yet." %}

{% blocktranslate count counter=table.total %}{{ counter }} response{% plural %}{{ counter }} responses{% endblocktranslate %} · {% blocktranslate with page=table.number pages=table.total_pages %}page {{ page }} of {{ pages }}{% endblocktranslate %} {% if table.has_previous %}{% translate "Previous" %}{% endif %} {% if table.has_next %}{% translate "Next" %}{% endif %}

{% endblock %}