Add a long check for alertness of payment names in the template. payments
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 16 Nov 2010 18:08:30 +0530
branchpayments
changeset 266 316d522c7d43
parent 265 4b40c44d9f2d
child 267 efdc1fa99ef7
Add a long check for alertness of payment names in the template.
project/templates/registration/manage_payments.html
--- a/project/templates/registration/manage_payments.html	Tue Nov 16 18:07:25 2010 +0530
+++ b/project/templates/registration/manage_payments.html	Tue Nov 16 18:08:30 2010 +0530
@@ -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 />