1 {% extends 'base.html' %} |
1 {% extends 'base.html' %} |
2 {% block title %} |
2 {% block title %} |
3 Send Accomodation Confirmation |
3 Send Accomodation Confirmation |
4 {% endblock %} |
4 {% endblock %} |
5 {% block content %} |
5 {% block content %} |
6 <br /> |
6 <br /> |
7 <form action="" method=post><form action="" method=post> |
7 <form action="" method=post><form action="" method=post> |
8 Dear so and so,<br /> |
8 Dear so and so,<br /><br/> |
9 <br/> |
9 Your request for accomodation during Sage Days 25, India has been approved. |
10 Your request for accomodation during Sage Days 25, India has been approved. |
10 <br /> |
11 <br /> |
11 message:<br /> |
12 message:<br /> |
12 <textarea name="message" rows=15 cols=95></textarea><br /> |
13 <textarea name="message" rows=15 cols=120></textarea> |
|
14 |
13 |
15 Not Selected ppl: {{not_selected.count}}<br > |
14 Not Selected people: {{not_selected.count}}<br > |
16 <table cellspacing=2 cellpadding=2> |
15 |
17 {% for m in not_selected %} |
16 <table cellspacing=2 cellpadding=2> |
18 <tr> |
17 <tr> |
19 <td> <input type="checkbox" name="selected_users" value="{{m.id}}" id="id_selected_users_0" /> </td> |
18 <th>Select</th> |
20 <td> {{m}} </td> |
19 <th>Name</th> |
21 <td> {{m.gender}} </td> |
20 <th>Sex</th> |
22 <td> {{m.profession}}</td> |
21 <th>Profession</th> |
23 <td> {{m.affiliated_to}} </td> |
22 <th>Organization</th> |
24 <td> |
23 <th>Laptop</th> |
25 {% if m.participantinfo_set.all.0.has_laptop_for_sagedays %} |
24 <th>Will sprint</th> |
26 True |
25 <th>Already sprinted</th> |
27 {% else %} |
26 <th>Allotment</th> |
28 False |
27 </tr> |
29 {% endif %} |
28 |
30 </td> |
29 {% for m in not_selected %} |
31 <td> {{m.participantinfo_set.all.0.will_sprint}}</td> |
30 <tr> |
32 <td> |
31 <td> |
33 {% if m.participantinfo_set.all.0.sprinted_already %} |
32 <input type="checkbox" name="selected_users" value="{{m.id}}" |
34 True |
33 id="id_selected_users_0" /> |
35 {% else %} |
34 </td> |
36 False |
35 <td>{{m}}</td> |
37 {% endif %} |
36 <td>{{m.gender}}</td> |
38 </td> |
37 <td>{{m.profession}}</td> |
39 </tr> |
38 <td>{{m.affiliated_to}}</td> |
40 {% endfor %} |
39 <td> |
|
40 {% if m.participantinfo_set.get.has_laptop_for_sagedays %} |
|
41 Yes |
|
42 {% else %} |
|
43 No |
|
44 {% endif %} |
|
45 </td> |
|
46 <td> |
|
47 {% if m.participantinfo_set.get.will_sprint == '1' %} |
|
48 No |
|
49 {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} |
|
50 May be |
|
51 {% else %} |
|
52 Yes |
|
53 {% endif %}{% endif %} |
|
54 </td> |
|
55 <td> |
|
56 {% if m.participantinfo_set.get.sprinted_already %} |
|
57 Yes |
|
58 {% else %} |
|
59 No |
|
60 {% endif %} |
|
61 </td> |
|
62 <td> |
|
63 {% if m.registrantinfo_set.get.acco_location == '0' %} |
|
64 IITB Hostel |
|
65 {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} |
|
66 IITB Guest House |
|
67 {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} |
|
68 NITIE |
|
69 {% else %} |
|
70 Not alloted |
|
71 {% endif %}{% endif %}{% endif %} |
|
72 </td> |
|
73 </tr> |
|
74 {% endfor %} |
41 </table> |
75 </table> |
42 <br /> |
76 <br /> |
43 |
77 |
44 Rejected Ppl: {{rejected.count}}<br /> |
78 Rejected People: {{rejected.count}}<br /> |
45 <table cellspacing=2 cellpadding=2> |
79 <table cellspacing=2 cellpadding=2> |
46 {% for m in rejected %} |
80 <tr> |
47 <tr> |
81 <th>Name</th> |
48 <td> <input type="checkbox" name="selected_users" value="{{m.id}}" id="id_selected_users_0" /> </td> |
82 <th>Sex</th> |
49 <td> {{m}} </td> |
83 <th>Profession</th> |
50 <td> {{m.gender}} </td> |
84 <th>Organization</th> |
51 <td> {{m.profession}}</td> |
85 <th>Laptop</th> |
52 <td> {{m.affiliated_to}} </td> |
86 <th>Will sprint</th> |
53 <td> |
87 <th>Already sprinted</th> |
54 {% if m.participantinfo_set.all.0.has_laptop_for_sagedays %} |
88 <th>Allotment</th> |
55 True |
89 </tr> |
56 {% else %} |
90 {% for m in rejected %} |
57 False |
91 <tr> |
58 {% endif %} |
92 <td> |
59 </td> |
93 <input type="checkbox" name="selected_users" value="{{m.id}}" |
60 <td> {{m.participantinfo_set.all.0.will_sprint}}</td> |
94 id="id_selected_users_0" /> |
61 <td> |
95 </td> |
62 {% if m.participantinfo_set.all.0.sprinted_already %} |
96 <td>{{m}}</td> |
63 True |
97 <td>{{m.gender}}</td> |
64 {% else %} |
98 <td>{{m.profession}}</td> |
65 False |
99 <td>{{m.affiliated_to}}</td> |
66 {% endif %} |
100 <td> |
67 </td> |
101 {% if m.participantinfo_set.get.has_laptop_for_sagedays %} |
68 </tr> |
102 Yes |
69 {% endfor %} |
103 {% else %} |
|
104 No |
|
105 {% endif %} |
|
106 </td> |
|
107 <td> |
|
108 {% if m.participantinfo_set.get.will_sprint == '1' %} |
|
109 No |
|
110 {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} |
|
111 May be |
|
112 {% else %} |
|
113 Yes |
|
114 {% endif %}{% endif %} |
|
115 </td> |
|
116 <td> |
|
117 {% if m.participantinfo_set.get.sprinted_already %} |
|
118 Yes |
|
119 {% else %} |
|
120 No |
|
121 {% endif %} |
|
122 </td> |
|
123 <td> |
|
124 {% if m.registrantinfo_set.get.acco_location == '0' %} |
|
125 IITB Hostel |
|
126 {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} |
|
127 IITB Guest House |
|
128 {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} |
|
129 NITIE |
|
130 {% else %} |
|
131 Not alloted |
|
132 {% endif %}{% endif %}{% endif %} |
|
133 </td> |
|
134 </tr> |
|
135 {% endfor %} |
70 </table> |
136 </table> |
71 |
137 |
72 <input type=submit value="Send confirmation email" /> |
138 <input type=submit value="Send confirmation email" /> |
73 </form> |
139 </form> |
74 <br /><br /> |
140 <br /><br /> |
75 Selected Ppl: {{selected_confirmed.count}}<br /> |
141 Selected People: {{selected_confirmed.count}}<br /> |
76 <table cellspacing=2 cellpadding=2> |
142 <table cellspacing=2 cellpadding=2> |
77 {% for m in selected %} |
143 <tr> |
78 <tr> |
144 <th>Name</th> |
79 <td> {{m}} </td> |
145 <th>Sex</th> |
80 <td> {{m.gender}} </td> |
146 <th>Profession</th> |
81 <td> {{m.profession}}</td> |
147 <th>Organization</th> |
82 <td> {{m.affiliated_to}} </td> |
148 <th>Laptop</th> |
83 <td> |
149 <th>Will sprint</th> |
84 {% if m.participantinfo_set.all.0.has_laptop_for_sagedays %} |
150 <th>Already sprinted</th> |
85 True |
151 <th>Allotment</th> |
86 {% else %} |
152 </tr> |
87 False |
153 {% for m in selected %} |
88 {% endif %} |
154 <tr> |
89 </td> |
155 <td>{{m}}</td> |
90 <td> {{m.participantinfo_set.all.0.will_sprint}}</td> |
156 <td>{{m.gender}}</td> |
91 <td> |
157 <td>{{m.profession}}</td> |
92 {% if m.participantinfo_set.all.0.sprinted_already %} |
158 <td>{{m.affiliated_to}}</td> |
93 True |
159 <td> |
94 {% else %} |
160 {% if m.participantinfo_set.get.has_laptop_for_sagedays %} |
95 False |
161 Yes |
96 {% endif %} |
162 {% else %} |
97 </td> |
163 No |
98 </tr> |
164 {% endif %} |
99 {% endfor %} |
165 </td> |
|
166 <td> |
|
167 {% if m.participantinfo_set.get.will_sprint == '1' %} |
|
168 No |
|
169 {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} |
|
170 May be |
|
171 {% else %} |
|
172 Yes |
|
173 {% endif %}{% endif %} |
|
174 </td> |
|
175 <td> |
|
176 {% if m.participantinfo_set.get.sprinted_already %} |
|
177 Yes |
|
178 {% else %} |
|
179 No |
|
180 {% endif %} |
|
181 </td> |
|
182 <td> |
|
183 {% if m.registrantinfo_set.get.acco_location == '0' %} |
|
184 IITB Hostel |
|
185 {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} |
|
186 IITB Guest House |
|
187 {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} |
|
188 NITIE |
|
189 {% else %} |
|
190 Not alloted |
|
191 {% endif %}{% endif %}{% endif %} |
|
192 </td> |
|
193 </tr> |
|
194 {% endfor %} |
100 </table> |
195 </table> |
101 |
196 |
102 {% endblock %} |
197 {% endblock %} |
103 |
|