summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-10-29 10:07:56 -0400
committerlxf <sng@luxagraf.net>2021-10-29 10:07:56 -0400
commite36b19e65e5d35cb4c802823c808e714ac9e8a55 (patch)
treee98d5aa55d2b9166593506445b5d9ea79304ef88 /app
parente853ff56dd7bff133754696e62187e3e93f957d0 (diff)
lttr: added thank you template for postcards
Diffstat (limited to 'app')
-rw-r--r--app/lttr/templates/lttr/postcard_subscribed.html24
-rw-r--r--app/lttr/urls.py5
-rw-r--r--app/lttr/views.py6
3 files changed, 34 insertions, 1 deletions
diff --git a/app/lttr/templates/lttr/postcard_subscribed.html b/app/lttr/templates/lttr/postcard_subscribed.html
new file mode 100644
index 0000000..464fb72
--- /dev/null
+++ b/app/lttr/templates/lttr/postcard_subscribed.html
@@ -0,0 +1,24 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+
+{% block pagetitle %}Thanks for subscribing! | luxagraf.net {% endblock %}
+{% block metadescription %}Thank you, I appreciate you joining the club{% endblock %}
+
+{% block primary %}
+ <nav class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
+ <span class="nav-item" itemprop="item">
+ <a href="/" itemprop="name">Home</a>
+ <meta itemprop="position" content="1" />
+ </span>
+ <span class="nav-item" itemprop="item">
+ <span itemprop="name">postcards</span>
+ <meta itemprop="position" content="2" />
+ </span>
+ </nav>
+ <main role="main" id="essay-archive" class="archive-wrapper">
+ <div class="archive-intro">
+ <h2>Nicely Done!</h2>
+ <p>We will send you a postcard in the near future.</p>
+ </div>
+ </main>
+{%endblock%}
diff --git a/app/lttr/urls.py b/app/lttr/urls.py
index d790f0f..a862f6f 100644
--- a/app/lttr/urls.py
+++ b/app/lttr/urls.py
@@ -11,6 +11,11 @@ urlpatterns = [
name='postcard_subscribe'
),
path(
+ 'postcardthanks',
+ views.PostcardSubscribedView.as_view(),
+ name='postcard_thanks'
+ ),
+ path(
'<str:slug>/unsubscribe/<str:activation_code>',
views.UnsubscribeRequestView.as_view(),
name='newsletter_unsubscribe'
diff --git a/app/lttr/views.py b/app/lttr/views.py
index f0f40e7..c6b0434 100644
--- a/app/lttr/views.py
+++ b/app/lttr/views.py
@@ -106,6 +106,10 @@ class UnsubscribeRequestView(DetailView):
return context
+class PostcardSubscribedView(TemplateView):
+ template_name = "lttr/postcard_subscribed.html"
+
+
class PostcardSubscribeView(CreateView):
"""
Return a subscribe form for iframe embedding
@@ -118,5 +122,5 @@ class PostcardSubscribeView(CreateView):
return ["lttr/postcard_subscribe.html",]
def get_success_url(self):
- return reverse_lazy('card:subscribed')
+ return reverse_lazy('lttr:postcard_thanks')