now form is not rendered via form.as_p anoop
authornishanth
Sat, 17 Jul 2010 01:31:12 +0530
branchanoop
changeset 126 98eb8dc364ba
parent 125 92f77f8428e7
child 127 464b9fad6cb8
now form is not rendered via form.as_p
sdi/views.py
templates/cnf_sgd_ptc.html
--- a/sdi/views.py	Sat Jul 17 01:17:37 2010 +0530
+++ b/sdi/views.py	Sat Jul 17 01:31:12 2010 +0530
@@ -215,8 +215,7 @@
     if request.method == "POST":
         pass
     else:
-        form = ParticipantInfoForm(instance=participant_info)
-        return render_to_response("cnf_sgd_ptc.html", {"user":user, "form":form})
+        return render_to_response("cnf_sgd_ptc.html", {"user":user})
 
 
 def admin_login(request):
--- a/templates/cnf_sgd_ptc.html	Sat Jul 17 01:17:37 2010 +0530
+++ b/templates/cnf_sgd_ptc.html	Sat Jul 17 01:31:12 2010 +0530
@@ -10,7 +10,19 @@
 <br />
 Please fill the following details and confirm your participation.<br />
 <form action="?email={{user.email}}" method=post>
-		{{form.as_p}}
+		Will you bring your own laptop for Sage Days 25:
+		<ul><li>Yes <input type="radio" name="has_laptop_for_sagedays" value="Yes" /></li>
+		<li>No <input type="radio" name="has_laptop_for_sagedays" value="No" /></li></ul>
+
+Have you participated in any kind of coding sprints:
+<ul><li>Yes <input type="radio" name="sprinted_already" value="Yes" /></li>
+		<li>No <input type="radio" name="sprinted_already" value="No" /></li></ul>
+
+		<p><label for="id_will_sprint">Will you sprint:</label> <select name="will_sprint" id="id_will_sprint">
+				<option value="3">Will sprint for sure</option>
+				<option value="2">May sprint</option>
+				<option value="1" selected="selected">Not my cup of tea</option>
+		</select></p>
 <input type=submit value="I confirm my participation in Sage Days 25" />
 </form>
 {% endblock %}