diff options
Diffstat (limited to 'app/lttr')
-rw-r--r-- | app/lttr/templates/lttr/postcard_subscribed.html | 24 | ||||
-rw-r--r-- | app/lttr/urls.py | 5 | ||||
-rw-r--r-- | app/lttr/views.py | 6 |
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') |