Add assignment thanks page.
This commit is contained in:
parent
a53a4560cd
commit
780e0b8dbf
4 changed files with 38 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
|||
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'),
|
||||
]
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
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'
|
||||
|
|
27
www/conservancy/templates/assignment/thanks.html
Normal file
27
www/conservancy/templates/assignment/thanks.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% 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 %}
|
|
@ -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')),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue