summaryrefslogtreecommitdiff
path: root/templates/admin/booking_index.html
blob: 58b9e1ce665e6eaaf965b03c251ab27c56695a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "layout.html" %}
{% load staticfiles %}

{% block content %}
<div class="container">
    <div class="row">
        {% include "account/sub_nav.html" %}
        <div class="span12">
            {% include "admin/sub_nav.html" %}
            <table class="table table-bordered table-condensed">
                <thead>
                    <tr>
                        <th>Date</th>
                        <th>Slot</th>
                        <th>Board</th>
                        <th>User</th>
                    </tr>
                </thead>
                <tbody>
                    {% for b in bookings %}
                    <tr>
                        <td>{{ b.booking_date|date:"M d, Y" }}</td>
                        <td>{{ b.slot }}</td>
                        <td>{{ b.account.board.mid }}</td>
                        <td>{{ b.account.name }}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}