cciw-website / templates / cciw / officers / booking_secretary_reports.html

{% extends "cciw/officers/base.html" %}
{% load url from future %}

{% block title %}Bookings {{ year }} | CCIW Officers{% endblock %}

{% block content %}
<h1>Bookings {{ year }}</h1>

<h2>Camps</h2>
<table class="data">
  <tr>
    <th rowspan=2>Camp</th>
    <th rowspan=2>Booked</th>
    <th colspan=3>Confirmed</th>
  </tr>
  <tr>
    <th>All</th>
    <th>Boys</th>
    <th>Girls</th>
  </tr>


{% for camp in camps %}
  <tr>
    <td>{{ camp }}</td>
    <td>{{ camp.bookings.all|length }}</td>
    <td>{{ camp.confirmed_bookings|length }}</td>
    <td>{{ camp.confirmed_bookings_boys|length }}</td>
    <td>{{ camp.confirmed_bookings_girls|length }}</td>
  </tr>

{% endfor %}
</table>


<h2>Bookings needing approval</h2>
{% if to_approve %}
<table class="data">
  <tr>
    <th>Account</th>
    <th>Email</th>
    <th>Phone</th>
    <th>Camper name</th>
    <th>Reason</th>
    <th>Edit</th>
  </tr>

  {% for b in to_approve %}
  <tr>
    <td>{{ b.account.name }}</td>
    <td>{{ b.account.email }}</td>
    <td>{{ b.account.phone_number }}</td>
    <td>{{ b.name }}</td>
    <td>
      {% if b.serious_illness %}Serious illness<br/>{% endif %}
      {% if b.is_custom_discount %}Custom discount<br/>{% endif %}
    </td>
    <td><a href="{% url 'admin:bookings_booking_change' b.id %}" rel="external">Edit</a></td>
  </tr>
  {% endfor %}
</table>

{% else %}
<p>None found.</p>
{% endif %}


<h2>Outstanding fees</h2>

{% if bookings %}

<table class="data">
  <tr>
    <th>Account</th>
    <th>Email</th>
    <th>Phone</th>
    <th>Balance due</th>
    <th>Camper name</th>
    <th>Camp</th>
    <th>Place cost</th>
  </tr>

  {% for b in bookings %}
  <tr>
    {% ifchanged b.account.id %}
    <td rowspan="{{ b.count_for_account }}">{{ b.account.name }}</td>
    <td rowspan="{{ b.count_for_account }}">{{ b.account.email }}</td>
    <td rowspan="{{ b.count_for_account }}">{{ b.account.phone_number }}</td>
    <td rowspan="{{ b.count_for_account }}">{{ b.account.calculated_balance }}
    {% if b.account.calculated_balance < 0 %}<b>(overpaid)</b>{% endif %}</td>
    {% endifchanged %}
    <td>{{ b.name }}</td>
    <td>{{ b.camp.number }}</td>
    <td>{{ b.amount_due }}</td>
  </tr>
  {% endfor %}

</table>

{% else %}
<p>None found.</p>
{% endif %}


{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.