improvised the template of confirm participation anoop
authornishanth
Fri, 16 Jul 2010 10:16:53 +0530
branchanoop
changeset 102 ef0012eb7695
parent 101 9def10724853
child 103 f874ddbd7952
improvised the template of confirm participation
sdi/views.py
templates/cnf_wsp_ptc.html
--- a/sdi/views.py	Fri Jul 16 10:07:13 2010 +0530
+++ b/sdi/views.py	Fri Jul 16 10:16:53 2010 +0530
@@ -149,7 +149,7 @@
     if request.method == "POST":
         pass
     else:
-        return render_to_response("cnf_wsp_ptc.html", {"email":email})
+        return render_to_response("cnf_wsp_ptc.html", {"user":user})
 
 def admin_login(request):
     """ basic login.
--- a/templates/cnf_wsp_ptc.html	Fri Jul 16 10:07:13 2010 +0530
+++ b/templates/cnf_wsp_ptc.html	Fri Jul 16 10:16:53 2010 +0530
@@ -2,9 +2,17 @@
 {% block title %}
 {% endblock %}
 {% block content %}
-<form action="?email={{email}}" method=post>
-		{{email}}
-		<input type=submit value=go />
+Dear {{user}}
+Thank you for your interest in Python workshop.
+<br /> <br />
+Although we would be providing laptops for limited no.of participants, we would be glad if you bring your own.<br />
+Are you bringing your own laptop:<br />
+<form action="?email={{user.email}}" method=post>
+		<ul>
+				<li><input type=radio name="lap_status">Yes</li>
+				<li><input type=radio name="lap_status">No</li>
+		</ul>
+		<input type=submit value="I am attending the Python workshop" />
 </form>
 {% endblock %}