project/templates/registration/manage_payments.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 18 Nov 2010 16:16:28 +0530
branchpayments
changeset 276 325ec5a41269
parent 267 efdc1fa99ef7
child 290 3ea1acce0f78
permissions -rw-r--r--
Merge payments branch with the default mainline branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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">
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
      {% for registrant in registrants %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
      <tr class="{% cycle odd,even %}">
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
        <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
    16
          <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
    17
          {% 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
    18
          {% 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
    19
          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
    20
          {% 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
    21
          {% 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
    22
          for="id_{{ registrant.registrant.id }}_label">
258
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
            {{ registrant.registrant.get_full_name }}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
          </label>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
        </th>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
        <td>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
          {{ field.errors }}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
          <input id="user_id_{{ registrant.registrant.id }}"
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
          name="registrant_id_{{ registrant.registrant.id }}"
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
          type="checkbox" name="paid"
266
316d522c7d43 Add a long check for alertness of payment names in the template.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 258
diff changeset
    31
          {% 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
    32
          checked=checked
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
          {% endif %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
          /><br />
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
        </td>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
      </tr>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
      {% endfor %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
      <tr>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
        <th>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
        <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
    41
        </th>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
      </tr>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
    </table>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
  </fieldset>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
</form>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
{% endblock content %}