From d9f51299809bfb6b3ac589b7c42016d0ef240299 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 6 Nov 2021 09:42:47 -0400 Subject: moved templates to top level directory --- templates/newsletter/newsletter_list.html | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 templates/newsletter/newsletter_list.html (limited to 'templates/newsletter/newsletter_list.html') diff --git a/templates/newsletter/newsletter_list.html b/templates/newsletter/newsletter_list.html new file mode 100644 index 0000000..2b48fa2 --- /dev/null +++ b/templates/newsletter/newsletter_list.html @@ -0,0 +1,41 @@ +{% extends "newsletter/common.html" %} + +{% load i18n %} + +{% block title %}{% trans "Newsletter list" %}{% endblock title %} + +{% block body %} +{% if user.is_authenticated %} +
+ {% csrf_token %} + {{ formset.management_form }} + + + + {% if user %} + + {% endif %} + + {% for form in formset.forms %} + + + + + {% endfor %} +
{% trans "Newsletter" %}{% trans "Subscribe" %}
{{ form.id }}{{ form.newsletter }} +{{ form.instance.newsletter.title }}{{ form.subscribed }}
+

+
+{% else %} + + + + + {% for newsletter in object_list %} + + + + {% endfor %} +
{% trans "Newsletter" %}
{{ newsletter.title }}
+{% endif %} +{% endblock body %} -- cgit v1.2.3-70-g09d2