{% extends 'events/surveys/management/_survey_base.html' %} {% block content %} {% if survey.private and survey.state.name in ('active_and_clean', 'active_and_answered') %}
{%- trans %}The survey is private{% endtrans -%}
{% set link_start %} {% endset %} {% set link_end = ''|safe %} {% trans -%} The survey is accessible only by people with this {{ link_start }}link{{ link_end }} {%- endtrans %}
{% endif %} {% if survey.state.name == 'not_ready' %} {% include 'events/surveys/management/survey_actions/not_ready.html' %} {% elif survey.state.name == 'ready_to_open' %} {% include 'events/surveys/management/survey_actions/ready_to_open.html' %} {% elif survey.state.name in ('active_and_clean', 'active_and_answered') %} {% include 'events/surveys/management/survey_actions/active.html' %} {% elif survey.state.name == 'finished' %} {% include 'events/surveys/management/survey_actions/finished.html' %} {% endif %}
{% if not survey.event_new.is_locked %}
{% trans %}General settings{% endtrans %}
{% trans %}Edit settings for this survey.{% endtrans %}
{% endif %} {% if survey.state.name != 'not_ready' %}
{% trans %}Questionnaire{% endtrans %}
{% trans %}Add, remove or modify questions.{% endtrans %}
{% endif %}

{% trans %}Submissions{% endtrans %}

{% if submitted_surveys %}
{% trans %}Results{% endtrans %} {%- trans %}Export{% endtrans -%}
{% for submission in submitted_surveys|sort(attribute='submitted_dt') %} {{ _render_submission_row(submission) }} {% endfor %}
{% trans %}ID{% endtrans %} {% trans %}Submitted{% endtrans %} {% trans %}User{% endtrans %}
{% else %}
{% trans %}There are no submissions yet.{% endtrans %}
{% endif %} {% endblock %} {% macro _render_submission_row(submission) %} #{{ submission.friendly_id }} {{ submission.submitted_dt|format_datetime(timezone=submission.survey.event_new.tzinfo) }} {% if not submission.is_anonymous %} {{ submission.user.full_name }} {% else %} {% trans %}Anonymous{% endtrans %} {% endif %} {% endmacro %}