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