# HG changeset patch # User nishanth # Date 1280146596 -19800 # Node ID faa42e8fa399f9511403323f26664754bee0ba39 # Parent b48d4c18a0aa491afcfcadab9c3a168149fb435c renamed a few variables in view and made corresponding changes in template diff -r b48d4c18a0aa -r faa42e8fa399 sdi/views.py --- a/sdi/views.py Mon Jul 26 17:44:26 2010 +0530 +++ b/sdi/views.py Mon Jul 26 17:46:36 2010 +0530 @@ -183,7 +183,7 @@ not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", registrantinfo__status_of_accomodation="1") - user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl) + user_choices = list(rejected_ppl) + list(selected_ppl) + list(not_selected_ppl) form = UserSelectForm(user_choices, request.POST) if request.method == "POST" and form.is_valid(): @@ -196,8 +196,7 @@ return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users}) else: return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl, - "selected_not_confirmed":selected_not_confirmed_ppl, - "selected_confirmed":selected_confirmed_ppl, + "selected":selected_ppl, "not_selected":not_selected_ppl, }) diff -r b48d4c18a0aa -r faa42e8fa399 templates/send_acco_cnf.html --- a/templates/send_acco_cnf.html Mon Jul 26 17:44:26 2010 +0530 +++ b/templates/send_acco_cnf.html Mon Jul 26 17:46:36 2010 +0530 @@ -17,18 +17,6 @@ {% endfor %}
-Selected but not Confirmed Ppl: {{selected_not_confirmed.count}}
- -{% for m in selected_not_confirmed %} - - - - - - - -{% endfor %} -
{{m}} {{m.gender}} {{m.profession}} {{m.affiliated_to}}
Rejected Ppl: {{rejected.count}}
@@ -46,9 +34,9 @@

-Selected and confirmed Ppl: {{selected_confirmed.count}}
+Selected Ppl: {{selected_confirmed.count}}
-{% for m in selected_confirmed %} +{% for m in selected %}
{{m}} {{m.gender}}