{% extends "newsletter/common.html" %}

{% load crispy_forms_tags %}
{% load i18n %}

{% block title %}{% trans "Newsletter Anmeldung" %}{% endblock title %}

{% block body %}
    <h1>{% trans "Anmeldung" %} {{ newsletter.title }}</h1>

    {% if error %}
        <p>{% trans "Due to a technical error we were not able to submit your confirmation email. This could be because your email address is invalid." %}</p>

        {% comment %} Replace the the following dummy with a valid email address and remove this comment.

        <p>{% trans "If the error persists, please don't hesitate to contact us at the following email address:" %} <a href="mailto:office@realitylab.at">office@realitylab.at</a></p>

        {% endcomment %}
    {% else %}
        <form enctype="multipart/form-data" method="post" action=".">
            {% csrf_token %}
            {% crispy form %}

            <!-- <p><input id="id_submit" name="submit" value="{% trans "Subscribe" %}" type="submit" /></p> -->
        </form>
    {% endif %}
{% endblock body %}
