subscription_subscribe_user.html 775 B

12345678910111213141516171819202122232425262728293031
  1. {% extends "newsletter/common.html" %}
  2. {% load crispy_forms_tags %}
  3. {% load i18n %}
  4. {% block title %}{% trans "Newsletter subscribe" %}{% endblock title %}
  5. {% block body %}
  6. <h1>{% trans "Newsletter subscribe" %} {{ newsletter.title }}</h1>
  7. <p>Welcome, {{ user }}!</p>
  8. {% if messages %}
  9. <ul>
  10. {% for message in messages %}
  11. <li>{{ message }}</li>
  12. {% endfor %}
  13. </ul>
  14. {% else %}
  15. {% trans "Do you want to subscribe to this newsletter?" %}
  16. <br>
  17. <br>
  18. <form enctype="multipart/form-data" method="post" action="{% url "newsletter_subscribe_confirm" newsletter.slug %}">
  19. {% csrf_token %}
  20. <p><input id="id_submit" class="border-thin mybtn" name="submit" value="{% trans "Subscribe" %}" type="submit" /></p>
  21. </form>
  22. <br>
  23. <br>
  24. <br>
  25. {% endif %}
  26. {% endblock body %}