project/templates/registration/manage_payments.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 16 Nov 2010 17:12:38 +0530
branchpayments
changeset 258 41178e6ce096
child 266 316d522c7d43
permissions -rw-r--r--
Add a new template for payment management.
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>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
          <label for="id_{{ registrant.registrant.id }}_label">
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
            {{ registrant.registrant.get_full_name }}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
          </label>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
        </th>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
        <td>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
          {{ field.errors }}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
          <input id="user_id_{{ registrant.registrant.id }}"
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
          name="registrant_id_{{ registrant.registrant.id }}"
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
          type="checkbox" name="paid"
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
          {% if registrant.registrant.payment_set.get.paid %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
          checked=checked
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
          {% endif %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
          /><br />
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
        </td>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
      </tr>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
      {% endfor %}
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
      <tr>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
        <th>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
        <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
    35
        </th>
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
    </table>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
  </fieldset>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
</form>
41178e6ce096 Add a new template for payment management.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
{% endblock content %}