Made style changes and added accommodation venue information for the list. anoop
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 06 Aug 2010 14:24:22 +0530
branchanoop
changeset 216 34512198cad4
parent 215 363d51e2cfa5
child 217 69f9624b0129
Made style changes and added accommodation venue information for the list.
templates/send_acco_cnf.html
--- a/templates/send_acco_cnf.html	Fri Aug 06 14:24:00 2010 +0530
+++ b/templates/send_acco_cnf.html	Fri Aug 06 14:24:22 2010 +0530
@@ -1,103 +1,197 @@
 {% extends 'base.html' %}
 {% block title %}
-Send Accomodation Confirmation
+  Send Accomodation Confirmation
 {% endblock %}
 {% block content %}
 <br />
 <form action="" method=post><form action="" method=post>
-Dear so and so,<br />
-<br/>
-Your request for accomodation during Sage Days 25, India has been approved.
-<br />
-message:<br />
-<textarea name="message" rows=15 cols=120></textarea>
+  Dear so and so,<br /><br/>
+  Your request for accomodation during Sage Days 25, India has been approved.
+  <br />
+  message:<br />
+  <textarea name="message" rows=15 cols=95></textarea><br />
+
+  Not Selected people: {{not_selected.count}}<br >
+
+  <table cellspacing=2 cellpadding=2>
+  <tr>
+    <th>Select</th>
+    <th>Name</th>
+    <th>Sex</th>
+    <th>Profession</th>
+    <th>Organization</th>
+    <th>Laptop</th>
+    <th>Will sprint</th>
+    <th>Already sprinted</th>
+    <th>Allotment</th>
+  </tr>
 
-Not Selected ppl: {{not_selected.count}}<br >
-<table cellspacing=2 cellpadding=2>
-{% for m in not_selected %}
-<tr>
-<td> <input type="checkbox" name="selected_users" value="{{m.id}}" id="id_selected_users_0" /> </td>
-<td> {{m}} </td>
-<td> {{m.gender}} </td>
-<td> {{m.profession}}</td>
-<td> {{m.affiliated_to}} </td>
-<td>
-{% if m.participantinfo_set.all.0.has_laptop_for_sagedays %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-<td> {{m.participantinfo_set.all.0.will_sprint}}</td>
-<td>
-{% if m.participantinfo_set.all.0.sprinted_already %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-</tr>
-{% endfor %}
+  {% for m in not_selected %}
+    <tr>
+      <td>
+        <input type="checkbox" name="selected_users" value="{{m.id}}"
+            id="id_selected_users_0" />
+      </td>
+      <td>{{m}}</td>
+      <td>{{m.gender}}</td>
+      <td>{{m.profession}}</td>
+      <td>{{m.affiliated_to}}</td>
+      <td>
+        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.will_sprint == '1' %}
+          No
+        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+          May be
+        {% else %}
+          Yes
+        {% endif %}{% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.sprinted_already %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.registrantinfo_set.get.acco_location == '0' %}
+          IITB Hostel
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+          IITB Guest House
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+          NITIE
+        {% else %}
+          Not alloted
+        {% endif %}{% endif %}{% endif %}
+      </td>
+    </tr>
+  {% endfor %}
 </table>
 <br />
 
-Rejected Ppl: {{rejected.count}}<br />
+Rejected People: {{rejected.count}}<br />
 <table cellspacing=2 cellpadding=2>
-{% for m in rejected %}
-<tr>
-<td> <input type="checkbox" name="selected_users" value="{{m.id}}" id="id_selected_users_0" /> </td>
-<td> {{m}} </td>
-<td> {{m.gender}} </td>
-<td> {{m.profession}}</td>
-<td> {{m.affiliated_to}} </td>
-<td>
-{% if m.participantinfo_set.all.0.has_laptop_for_sagedays %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-<td> {{m.participantinfo_set.all.0.will_sprint}}</td>
-<td>
-{% if m.participantinfo_set.all.0.sprinted_already %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-</tr>
-{% endfor %}
+  <tr>
+    <th>Name</th>
+    <th>Sex</th>
+    <th>Profession</th>
+    <th>Organization</th>
+    <th>Laptop</th>
+    <th>Will sprint</th>
+    <th>Already sprinted</th>
+    <th>Allotment</th>
+  </tr>
+  {% for m in rejected %}
+    <tr>
+    <td>
+      <input type="checkbox" name="selected_users" value="{{m.id}}"
+          id="id_selected_users_0" />
+    </td>
+    <td>{{m}}</td>
+    <td>{{m.gender}}</td>
+    <td>{{m.profession}}</td>
+    <td>{{m.affiliated_to}}</td>
+    <td>
+        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.will_sprint == '1' %}
+          No
+        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+          May be
+        {% else %}
+          Yes
+        {% endif %}{% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.sprinted_already %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.registrantinfo_set.get.acco_location == '0' %}
+          IITB Hostel
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+          IITB Guest House
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+          NITIE
+        {% else %}
+          Not alloted
+        {% endif %}{% endif %}{% endif %}
+      </td>
+    </tr>
+  {% endfor %}
 </table>
 
 <input type=submit value="Send confirmation email"  />
 </form>
 <br /><br />
-Selected Ppl: {{selected_confirmed.count}}<br />
+Selected People: {{selected_confirmed.count}}<br />
 <table cellspacing=2 cellpadding=2>
-{% for m in selected %}
-<tr>
-<td> {{m}} </td>
-<td> {{m.gender}} </td>
-<td> {{m.profession}}</td>
-<td> {{m.affiliated_to}} </td>
-<td>
-{% if m.participantinfo_set.all.0.has_laptop_for_sagedays %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-<td> {{m.participantinfo_set.all.0.will_sprint}}</td>
-<td>
-{% if m.participantinfo_set.all.0.sprinted_already %}
-True
-{% else %}
-False
-{% endif %}
-</td>
-</tr>
-{% endfor %}
+  <tr>
+    <th>Name</th>
+    <th>Sex</th>
+    <th>Profession</th>
+    <th>Organization</th>
+    <th>Laptop</th>
+    <th>Will sprint</th>
+    <th>Already sprinted</th>
+    <th>Allotment</th>
+  </tr>
+  {% for m in selected %}
+    <tr>
+      <td>{{m}}</td>
+      <td>{{m.gender}}</td>
+      <td>{{m.profession}}</td>
+      <td>{{m.affiliated_to}}</td>
+      <td>
+        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.will_sprint == '1' %}
+          No
+        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+          May be
+        {% else %}
+          Yes
+        {% endif %}{% endif %}
+      </td>
+      <td>
+        {% if m.participantinfo_set.get.sprinted_already %}
+          Yes
+        {% else %}
+          No
+        {% endif %}
+      </td>
+      <td>
+        {% if m.registrantinfo_set.get.acco_location == '0' %}
+          IITB Hostel
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+          IITB Guest House
+        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+          NITIE
+        {% else %}
+          Not alloted
+        {% endif %}{% endif %}{% endif %}
+      </td>
+    </tr>
+  {% endfor %}
 </table>
 
 {% endblock %}
-