author | Parth buch <parth.buch.115@gmail.com> |
Sat, 17 Sep 2011 18:20:01 +0530 | |
branch | 2011 |
changeset 411 | 0e6657d73a6a |
parent 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 |
|
310
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
5 |
{% block addscripts %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
6 |
<script type="text/javascript"> |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
7 |
|
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
8 |
$(document).ready(function(){ |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
9 |
{% for registrant in registrants %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
10 |
$("#date_id_{{ registrant.registrant.id }}").datepicker(); |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
11 |
{% endfor %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
12 |
|
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
13 |
}); |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
14 |
|
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
15 |
</script> |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
16 |
{% endblock addscripts %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
17 |
|
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
18 |
{% block content %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
19 |
<h1>Manage Payments</h1> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
20 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
21 |
<form action="" method="post"> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
22 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
23 |
<fieldset> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
24 |
<legend>Payment Details</legend> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
25 |
<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
|
26 |
<tr> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
27 |
<th>Full Name</th> |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
28 |
<th>Reg. Confirmed</th> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
29 |
<th>Accommodation. Confirmed</th> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
30 |
<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
|
31 |
<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
|
32 |
<th>Details</th> |
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
33 |
</tr> |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
34 |
{% for registrant in registrants %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
35 |
<tr class="{% cycle odd,even %}"> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
36 |
<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
|
37 |
<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
|
38 |
{% 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
|
39 |
{% 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
|
40 |
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
|
41 |
{% 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
|
42 |
{% 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
|
43 |
for="id_{{ registrant.registrant.id }}_label"> |
258
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
44 |
{{ registrant.registrant.get_full_name }} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
45 |
</label> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
46 |
</th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
47 |
<td> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
48 |
{{ field.errors }} |
310
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
49 |
<input id="confirmed_id_{{ registrant.registrant.id }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
50 |
name="confirmed_id_{{ registrant.registrant.id }}" |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
51 |
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
|
52 |
{% 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
|
53 |
checked=checked |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
54 |
{% endif %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
55 |
/><br /> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
56 |
</td> |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
57 |
<td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
58 |
{{ field.errors }} |
310
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
59 |
<input id="acco_id_{{ registrant.registrant.id }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
60 |
name="acco_id_{{ registrant.registrant.id }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
61 |
type="checkbox" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
62 |
{% if registrant.registrant.payment_set.get.acco_confirmed %} |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
63 |
checked=checked |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
64 |
{% endif %} |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
65 |
/><br /> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
66 |
</td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
67 |
<td> |
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
68 |
{{ field.errors }} |
310
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
69 |
<input id="date_id_{{ registrant.registrant.id }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
70 |
name="date_id_{{ registrant.registrant.id }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
71 |
type="text" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
72 |
{% if registrant.registrant.payment_set.get.date_confirmed %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
73 |
value="{{ registrant.registrant.payment_set.get.date_confirmed|date:"m/d/Y" }}" |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
74 |
{% endif %} |
3541adaa5cd3
Provide Javascript support and add all view related changes for form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
309
diff
changeset
|
75 |
/><br /> |
309
861223798fa4
Add new fields to payment form for accommodation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
290
diff
changeset
|
76 |
</td> |
290
3ea1acce0f78
Add payment mode and details to the management page details.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
267
diff
changeset
|
77 |
<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
|
78 |
<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
|
79 |
</tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
80 |
{% endfor %} |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
81 |
<tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
82 |
<th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
83 |
<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
|
84 |
</th> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
85 |
</tr> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
86 |
</table> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
87 |
</fieldset> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
88 |
|
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
89 |
</form> |
41178e6ce096
Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
90 |
{% endblock content %} |