joeni

rooms.djhtml

1
{% extends "joeni/base.djhtml" %}
2
{# "silent" blocks the cycle operator from printing the cycler, and in subsequent calls #}
3
{% load i18n %}
4
5
{% block title %}
6
    {% trans "Rooms" %} | {{ block.super }}
7
{% endblock %}
8
9
{% block main %}
10
    <h1 id="campus-diepenbeek">Campus Diepenbeek</h1>
11
    <h2 id="{% trans "free-rooms" %}">{% trans "Free rooms" %}</h2>
12
    <ul>
13
    {% for free_room, until in free_rooms.items %}
14
        <li><a href="{% url "administration-room-detail" free_room %}">{{ free_room }}</a>
15
            {% if until is None %}
16
                {% trans "is free for the rest of the day." %}
17
            {% else %}
18
                {% trans "is free until" %} {{ until|time:"TIME_FORMAT" }}</li>
19
            {% endif %}
20
    {% endfor %}
21
    </ul>
22
23
    {% for block in blocks %}
24
        <h2 id="{{ block }}">{{ block }}</h2>
25
        <ul>
26
        {% for room in rooms %}
27
            {% if room|make_list|first == block %}
28
                <li><a href="{% url "administration-room-detail" room %}">{{ room }}</a></li>
29
            {% endif %}
30
        {% endfor %}
31
        </ul>
32
    {% endfor %}
33
34
{% endblock main %}
35