{% extends "tests/base.html" %} {% load wagtailcore_tags i18n %} {% block content %}

{{ greeting }}

{% if user.is_authenticated and user.is_active or request.is_preview %} {% if form %}
{{ self.intro|richtext }}
{% csrf_token %} {{ form.as_p }}
{% else %}
{% trans 'The form is already filled.' %}
{% endif %} {% else %}
{% trans 'You must log in first.' %}
{% endif %} {% endblock %}