Changeset - 780e0b8dbfe3
[Not reviewed]
0 3 1
Ben Sturmfels (bsturmfels) - 5 months ago 2021-12-06 22:59:38
ben@sturm.com.au
Add assignment thanks page.
4 files changed with 38 insertions and 5 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/assignment/urls.py
Show inline comments
 
from django.conf.urls import url
 

	
 
from .views import AssignmentCreateView
 
from .views import AssignmentCreateView, AssignmentThanksView
 

	
 

	
 
urlpatterns = [
 
    url(r'add/', AssignmentCreateView.as_view(), name='assignement-add'),
 
    url(r'^$', AssignmentCreateView.as_view(), name='assignement-add'),
 
    url(r'^thanks/$', AssignmentThanksView.as_view(), name='assignment-thanks'),
 
]
www/conservancy/apps/assignment/views.py
Show inline comments
 
from django.shortcuts import render
 

	
 

	
 
from django.urls import reverse_lazy
 
from django.views.generic.edit import CreateView, DeleteView, UpdateView
 
from django.views.generic import TemplateView
 
from django.views.generic.edit import CreateView
 
from .models import Assignment
 

	
 

	
...
 
@@ -16,3 +16,8 @@ class AssignmentCreateView(CreateView):
 
        'coverage',
 
        'attestation_of_copyright',
 
    ]
 
    success_url = reverse_lazy('assignment-thanks')
 

	
 

	
 
class AssignmentThanksView(TemplateView):
 
    template_name = 'assignment/thanks.html'
www/conservancy/templates/assignment/thanks.html
Show inline comments
 
new file 100644
 
{% extends "base_conservancy.html" %}
 
{% block category %}Copyright Assignment{% endblock %}
 
{% block outercontent %}
 
  <style>
 
   label { display: block; }
 
   input, textarea, select {
 
     width: 25rem;
 
     padding: 0.25rem;
 
     border-radius: 2px;
 
   }
 
   input[type=checkbox] { width: auto; }
 
   span[class=helptext] {
 
     display: block;
 
     font-size: 12px;
 
     font-style: italic;
 
     color: #666;
 
   }
 
   #id_place_of_residence {
 
     height: 5rem;
 
   }
 
  </style>
 
  <h1>Thanks!</h1>
 

	
 
  <div class="mw7">
 
    <p>You'll shortly receive an email with the paperwork required to complete this assignment. If you have any questions or concerns, please don't hesitate to <a href="/about/contact/">contact us</a>.</p>
 
  </div>
 
{% endblock %}
www/conservancy/urls.py
Show inline comments
...
 
@@ -59,5 +59,5 @@ urlpatterns = [
 
    url(r'^coming-soon.html', static_views.index),
 
    url(r'^fundraiser_data', fundgoal_views.view),
 
    url(r'^ccs-upload/', include('conservancy.apps.ccs_upload.urls', namespace='ccs_upload')),
 
    url(r'^assignment', include('conservancy.apps.assignment.urls')),
 
    url(r'^assignment/', include('conservancy.apps.assignment.urls')),
 
]
0 comments (0 inline, 0 general)