{% extends 'base.html' %} {% load i18n %} {% load wagtailcore_tags %} {% block content %}

{{ page.title }}

{% if user.is_authenticated and user.is_active or request.is_preview or self.allow_anonymous_submissions %} {% if form %}

{{ self.intro }}

{% csrf_token %} {{ form.as_p }}
{% else %}

{% trans 'You have already completed this survey.' %}

{% endif %} {% else %}

{% trans 'Please log in to take this survey.' %}

{% endif %} {% endblock %}