diff options
Diffstat (limited to 'templates/newsletter/subscription_unsubscribe_user.html')
-rw-r--r-- | templates/newsletter/subscription_unsubscribe_user.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/newsletter/subscription_unsubscribe_user.html b/templates/newsletter/subscription_unsubscribe_user.html new file mode 100644 index 0000000..5bc81dc --- /dev/null +++ b/templates/newsletter/subscription_unsubscribe_user.html @@ -0,0 +1,27 @@ +{% extends "newsletter/common.html" %} + +{% load i18n %} + +{% block title %}{% trans "Newsletter unsubscribe" %}{% endblock title %} + +{% block body %} +<h1>{% trans "Newsletter unsubscribe" %} {{ 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 unsubscribe from this newsletter?" %} +<form enctype="multipart/form-data" method="post" action="{% url "newsletter_unsubscribe_confirm" newsletter.slug %}"> + {% csrf_token %} + <p><input id="id_submit" name="submit" value="{% trans "Unsubscribe" %}" type="submit" /></p> +</form> +{% endif %} + +{% endblock body %} |