summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-11-16 18:33:10 +0530
committerMadhusudan.C.S2010-11-16 18:33:10 +0530
commit379bde6f568afd0ca48c7b46b8b65fd520968e8c (patch)
tree938785f4c141519d8bc5c41a5211d30d41547b74 /project
parent58079289ccebf61d562e5e5a576b4aa48fee25b5 (diff)
downloadscipycon-379bde6f568afd0ca48c7b46b8b65fd520968e8c.tar.gz
scipycon-379bde6f568afd0ca48c7b46b8b65fd520968e8c.tar.bz2
scipycon-379bde6f568afd0ca48c7b46b8b65fd520968e8c.zip
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
--HG-- branch : payments
Diffstat (limited to 'project')
-rw-r--r--project/templates/registration/manage_payments.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/project/templates/registration/manage_payments.html b/project/templates/registration/manage_payments.html
index d340d5f..472b53b 100644
--- a/project/templates/registration/manage_payments.html
+++ b/project/templates/registration/manage_payments.html
@@ -14,9 +14,11 @@
<tr class="{% cycle odd,even %}">
<th>
<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 %}
+ {% if registrant.registrant.payment_set.get.type or registrant.registrant.payment_set.get.details %}
+ {% if not registrant.registrant.payment_set.get.confirmed %}
+ class="alert"
+ {% endif %}
+ {% endif %}
for="id_{{ registrant.registrant.id }}_label">
{{ registrant.registrant.get_full_name }}
</label>