templates/send_acco_cnf.html
author nishanth
Wed, 21 Jul 2010 17:16:50 +0530
branchanoop
changeset 153 55f338569133
child 176 faa42e8fa399
permissions -rw-r--r--
updated the view for GET part and created corresponding template

{% extends 'base.html' %}
{% block title %}
Send Accomodation Confirmation
{% endblock %}
{% block content %}
<form action="" method=post>
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 />
Selected but not Confirmed Ppl: {{selected_not_confirmed.count}}<br />
<table cellspacing=2 cellpadding=2>
{% for m in selected_not_confirmed %}
<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>

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 and confirmed Ppl: {{selected_confirmed.count}}<br />
<table cellspacing=2 cellpadding=2>
{% for m in selected_confirmed %}
<tr>
<td> {{m}} </td>
<td> {{m.gender}} </td>
<td> {{m.profession}}</td>
<td> {{m.affiliated_to}} </td>
</tr>
{% endfor %}
</table>

{% endblock %}