aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/account/booking_list.html
blob: 9c6f3db2a9a6d8c1838dbcdef15deb3fb3720dd7 (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
34
35
36
37
38
39
40
41
{% extends "base.html" %}
{% block content %}
<h2>Bookings I Own</h2>
    <div class="card_container">
    {% for booking in bookings %}
        <div class="detail_card">
            <div>
                <h3>Booking {{booking.id}}</h3>
                <ul class="list-group">
                    <li class="list-group-item">id: {{booking.id}}</li>
                    <li class="list-group-item">lab: {{booking.resource.template.lab.lab_user.username}}</li>
                    <li class="list-group-item">resource: {{booking.resource.template.name}}</li>
                    <li class="list-group-item">start: {{booking.start}}</li>
                    <li class="list-group-item">end: {{booking.end}}</li>
                    <li class="list-group-item">purpose: {{booking.purpose}}</li>
                </ul>
            </div>
            <a class="btn btn-primary" href="/booking/detail/{{booking.id}}/">Details</a>
        </div>
    {% endfor %}
    </div>
<h2>Bookings I Collaborate On</h2>
    <div class="card_container">
    {% for booking in collab_bookings %}
        <div class="detail_card">
            <div>
                <h3>Booking {{booking.id}}</h3>
                <ul class="list-group">
                    <li class="list-group-item">id: {{booking.id}}</li>
                    <li class="list-group-item">lab: {{booking.lab}}</li>
                    <li class="list-group-item">resource: {{booking.resource_name}}</li>
                    <li class="list-group-item">start: {{booking.start}}</li>
                    <li class="list-group-item">end: {{booking.end}}</li>
                    <li class="list-group-item">purpose: {{booking.purpose}}</li>
                </ul>
            </div>
            <a class="btn btn-primary" href="/booking/detail/{{booking.id}}/">Details</a>
        </div>
    {% endfor %}
    </div>
{% endblock %}