templates/send_acco_cnf.html
author anoop
Fri, 30 Jul 2010 13:03:27 +0530
branchanoop
changeset 197 69186c3019e9
parent 178 f87248c912b4
child 198 bafcc5b5523e
permissions -rw-r--r--
added more fields in send accommodation template.

{% extends 'base.html' %}
{% block title %}
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>

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>
</tr>
{% endfor %}
</table>
<br />

Rejected Ppl: {{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>
</tr>
{% endfor %}
</table>

<input type=submit value="Send confirmation email"  />
</form>
<br /><br />
Selected Ppl: {{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 %}
</table>

{% endblock %}