author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 29 Nov 2010 21:15:51 +0530 | |
changeset 309 | 861223798fa4 |
parent 290 | 3ea1acce0f78 |
child 310 | 3541adaa5cd3 |
permissions | -rw-r--r-- |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
{% extends "base.html" %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
{% block title %}Manage Payments - {% endblock %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
{% block content %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
<h1>Manage Payments</h1> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
7 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
<form action="" method="post"> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
9 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
10 |
<fieldset> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
11 |
<legend>Payment Details</legend> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
12 |
<table class="scipycon-default"> |
290
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
13 |
<tr> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
14 |
<th>Full Name</th> |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
15 |
<th>Reg. Confirmed</th> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
16 |
<th>Accommodation. Confirmed</th> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
17 |
<th>Date of Payment</th> |
290
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
18 |
<th>Payment Mode</th> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
19 |
<th>Details</th> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
20 |
</tr> |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
21 |
{% for registrant in registrants %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
22 |
<tr class="{% cycle odd,even %}"> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
23 |
<th> |
266
316d522c7d43
Add a long check for alertness of payment names in the template.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
258
diff
changeset
|
24 |
<label |
267
efdc1fa99ef7
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
266
diff
changeset
|
25 |
{% if registrant.registrant.payment_set.get.type or registrant.registrant.payment_set.get.details %} |
efdc1fa99ef7
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
266
diff
changeset
|
26 |
{% if not registrant.registrant.payment_set.get.confirmed %} |
efdc1fa99ef7
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
266
diff
changeset
|
27 |
class="alert" |
efdc1fa99ef7
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
266
diff
changeset
|
28 |
{% endif %} |
efdc1fa99ef7
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
266
diff
changeset
|
29 |
{% endif %} |
266
316d522c7d43
Add a long check for alertness of payment names in the template.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
258
diff
changeset
|
30 |
for="id_{{ registrant.registrant.id }}_label"> |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
31 |
{{ registrant.registrant.get_full_name }} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
32 |
</label> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
33 |
</th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
34 |
<td> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
35 |
{{ field.errors }} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
36 |
<input id="user_id_{{ registrant.registrant.id }}" |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
37 |
name="registrant_id_{{ registrant.registrant.id }}" |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
38 |
type="checkbox" name="registration_confirmed" |
266
316d522c7d43
Add a long check for alertness of payment names in the template.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
258
diff
changeset
|
39 |
{% if registrant.registrant.payment_set.get.confirmed %} |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
40 |
checked=checked |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
41 |
{% endif %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
42 |
/><br /> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
43 |
</td> |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
44 |
<td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
45 |
{{ field.errors }} |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
46 |
<input id="user_id_{{ registrant.registrant.id }}" |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
47 |
name="registrant_id_{{ registrant.registrant.id }}" |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
48 |
type="checkbox" name="accommodation_confirmed" |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
49 |
{% if registrant.registrant.payment_set.get.acc_confirmed %} |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
50 |
checked=checked |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
51 |
{% endif %} |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
52 |
/><br /> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
53 |
</td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
54 |
<td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
55 |
{{ field.errors }} |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
56 |
<input id="user_id_{{ registrant.registrant.id }}" |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
57 |
name="registrant_id_{{ registrant.registrant.id }}" |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
58 |
type="text" name="date_of_payment"/><br /> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
59 |
</td> |
290
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
60 |
<td>{{ registrant.registrant.payment_set.get.type }}</td> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
61 |
<td>{{ registrant.registrant.payment_set.get.details }}</td> |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
62 |
</tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
63 |
{% endfor %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
64 |
<tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
65 |
<th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
66 |
<button class="button left" type="submit">Submit Payment Status</button> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
67 |
</th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
68 |
</tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
69 |
</table> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
70 |
</fieldset> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
71 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
72 |
</form> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
73 |
{% endblock content %} |