fixed a typo and added new template for confirmation of sending mail to selected participants anoop
authornishanth
Sat, 17 Jul 2010 00:07:43 +0530
branchanoop
changeset 116 54ced1b9e010
parent 115 c03a2b66ea09
child 117 af9472ab8f3e
fixed a typo and added new template for confirmation of sending mail to selected participants
sdi/views.py
templates/send_sgd_cnf.html
templates/sent_sgd_confirm.html
--- a/sdi/views.py	Sat Jul 17 00:02:18 2010 +0530
+++ b/sdi/views.py	Sat Jul 17 00:07:43 2010 +0530
@@ -140,11 +140,11 @@
     if request.method == "POST" and form.is_valid():
         selected_users = form.cleaned_data['selected_users']
         for user in selected_users:
-            user_info = user.registrantinto.all()[0]
+            user_info = user.registrantinfo.all()[0]
             user_info.status_of_attending_sagedays = "2"
             user_info.save()
         
-        return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users})
+        return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users})
     else:
         return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, 
                                                 "not_confirmed":not_confirmed_ppl,
--- a/templates/send_sgd_cnf.html	Sat Jul 17 00:02:18 2010 +0530
+++ b/templates/send_sgd_cnf.html	Sat Jul 17 00:07:43 2010 +0530
@@ -17,7 +17,7 @@
 {% endfor %}
 </table>
 <br />
-Not Confirmed Ppl: <br />
+Selected but not Confirmed Ppl: <br />
 <table cellspacing=2 cellpadding=2>
 {% for m in not_confirmed %}
 <tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/sent_sgd_confirm.html	Sat Jul 17 00:07:43 2010 +0530
@@ -0,0 +1,13 @@
+{% extends 'base.html' %}
+{% block title %}
+Sent Sage Days Participaton Confirmation
+{% endblock %}
+{% block content %}
+Confirmation mail was sent to the following users
+<ul>
+{%  for u in selected_users %}
+<li> {{u}} </li>
+{% endfor %}
+</ul>
+<a href="/sage_days/registration/send_sgd_cnf">Return to previous page</a>
+{% endblock %}