added template for thanking for participation in workshop anoop
authornishanth
Fri, 16 Jul 2010 10:29:25 +0530
branchanoop
changeset 104 7630d7f3613a
parent 103 f874ddbd7952
child 105 2e3fe11a3fcb
added template for thanking for participation in workshop
sdi/views.py
templates/attending_wsp.html
--- a/sdi/views.py	Fri Jul 16 10:24:01 2010 +0530
+++ b/sdi/views.py	Fri Jul 16 10:29:25 2010 +0530
@@ -147,7 +147,12 @@
         raise Http404
 
     if request.method == "POST":
-        pass
+        try:
+            has_laptop = request.POST['lap_status']
+        except MultiValueDictKeyError:
+            return render_to_response("cnf_wsp_ptc.html", {"user":user})
+
+        return render_to_response("attending_wsp.html")
     else:
         return render_to_response("cnf_wsp_ptc.html", {"user":user})
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/attending_wsp.html	Fri Jul 16 10:29:25 2010 +0530
@@ -0,0 +1,8 @@
+{% extends 'base.html' %}
+{% block title %}
+Thankyou
+{% endblock %}
+{% block content %}
+Thank you for confirming your participation in the Python workshop.
+{% endblock %}
+