subscription_subscribe_user.html 695 B

12345678910111213141516171819202122232425
  1. {% extends "newsletter/common.html" %}
  2. {% load i18n %}
  3. {% block title %}{% trans "Newsletter subscribe" %}{% endblock title %}
  4. {% block body %}
  5. <h1>{% trans "Newsletter subscribe" %} {{ 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 subscribe to this newsletter?" %}
  15. <form enctype="multipart/form-data" method="post" action="{% url "newsletter_subscribe_confirm" newsletter.slug %}">
  16. {% csrf_token %}
  17. <p><input id="id_submit" name="submit" value="{% trans "Subscribe" %}" type="submit" /></p>
  18. </form>
  19. {% endif %}
  20. {% endblock body %}