{% extends 'emails/base.txt' %}
{% set survey = submission.survey %}

{% block subject -%}
    New survey submission for "{{ survey.title }}" on the event "{{ survey.event.title }}"
{%- endblock %}

{% block header -%}{%- endblock %}

{% block body -%}
    {%- filter dedent -%}
        A new submission has been made for the survey "{{ survey.title }}" on the event "{{ survey.event.title }}"
        {%- if not submission.is_anonymous %} by {{ submission.user.full_name }}{% endif -%}.

        You can access the new submission here:
        {{ url_for('surveys.display_submission', submission, _external=true) }}

        You can access all the submissions by clicking on the link below:
        {{ url_for('surveys.manage_survey', survey, _external=true) }}
    {%- endfilter -%}
{%- endblock %}

{% block footer_title -%}
    Surveys
{%- endblock %}

{% block footer_url -%}
    {{ survey.event.external_url }}
{%- endblock %}
