subscription_unsubscribe_user.html 709 B

123456789101112131415161718192021222324252627
  1. {% extends "newsletter/common.html" %}
  2. {% load i18n %}
  3. {% block title %}{% trans "Newsletter unsubscribe" %}{% endblock title %}
  4. {% block body %}
  5. <h1>{% trans "Newsletter unsubscribe" %} {{ newsletter.title }}</h1>
  6. <p>Welcome, {{ user }}!</p>
  7. {% if messages %}
  8. <ul>
  9. {% for message in messages %}
  10. <li>{{ message }}</li>
  11. {% endfor %}
  12. </ul>
  13. {% else %}
  14. {% trans "Do you want to unsubscribe from this newsletter?" %}
  15. <form enctype="multipart/form-data" method="post" action="{% url "newsletter_unsubscribe_confirm" newsletter.slug %}">
  16. {% csrf_token %}
  17. <p><input id="id_submit" name="submit" value="{% trans "Unsubscribe" %}" type="submit" /></p>
  18. </form>
  19. {% endif %}
  20. {% endblock body %}