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

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

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

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

<p>Welcome, {{ user }}!</p>

{% if messages %}
<ul>
    {% for message in messages %}
    <li>{{ message }}</li>
    {% endfor %}
</ul>
{% else %}
{% trans "Do you want to subscribe to this newsletter?" %}
<br>
<br>
<form enctype="multipart/form-data" method="post" action="{% url "newsletter_subscribe_confirm" newsletter.slug %}">
    {% csrf_token %}
    <p><input id="id_submit" class="border-thin mybtn" name="submit" value="{% trans "Subscribe" %}" type="submit" /></p>
</form>
<br>
<br>
<br>
{% endif %}
{% endblock body %}
