summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-11-16 18:08:30 +0530
committerMadhusudan.C.S2010-11-16 18:08:30 +0530
commit58079289ccebf61d562e5e5a576b4aa48fee25b5 (patch)
tree5e3e9b8a68419b360570f45f667efc5f4916e759 /project
parent83d967ff3990775c9c2675372ae40546963d5323 (diff)
downloadscipycon-58079289ccebf61d562e5e5a576b4aa48fee25b5.tar.gz
scipycon-58079289ccebf61d562e5e5a576b4aa48fee25b5.tar.bz2
scipycon-58079289ccebf61d562e5e5a576b4aa48fee25b5.zip
Add a long check for alertness of payment names in the template.
--HG-- branch : payments
Diffstat (limited to 'project')
-rw-r--r--project/templates/registration/manage_payments.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/project/templates/registration/manage_payments.html b/project/templates/registration/manage_payments.html
index ffa1aa6..d340d5f 100644
--- a/project/templates/registration/manage_payments.html
+++ b/project/templates/registration/manage_payments.html
@@ -13,7 +13,11 @@
{% for registrant in registrants %}
<tr class="{% cycle odd,even %}">
<th>
- <label for="id_{{ registrant.registrant.id }}_label">
+ <label
+ {% if registrant.registrant.payment_set.get.type or registrant.registrant.payment_set.get.details and not registrant.registrant.payment_set.get.confirmed %}
+ class="alert"
+ {% endif %}
+ for="id_{{ registrant.registrant.id }}_label">
{{ registrant.registrant.get_full_name }}
</label>
</th>
@@ -22,7 +26,7 @@
<input id="user_id_{{ registrant.registrant.id }}"
name="registrant_id_{{ registrant.registrant.id }}"
type="checkbox" name="paid"
- {% if registrant.registrant.payment_set.get.paid %}
+ {% if registrant.registrant.payment_set.get.confirmed %}
checked=checked
{% endif %}
/><br />