{% extends "base.html" %}

{% block title %}Newsletter subscribe{% endblock %}

{% block body %}
    <h1>Newsletter subscribe {{ newsletter.title }}</h1>
    {% if error %}
        <p>
            Due to a technical error we were not able to submit your confirmation email.
            This could be because your email address is invalid.
        </p>
    {% else %}
        <form enctype="multipart/form-data" method="post" action=".">
            {% csrf_token %}
            {{ form.as_p() }}
            <p><input id="id_submit" name="submit" value="Subscribe" type="submit"></p>
        </form>
    {% endif %}
{% endblock %}