room_detail.djhtml
1 |
|
2 |
{# "silent" blocks the cycle operator from printing the cycler, and in subsequent calls #} |
3 |
{% load i18n %} |
4 |
|
5 |
{% block title %} |
6 |
{% trans "Info about" %} {{ room.name }} | {{ block.super }} |
7 |
{% endblock %} |
8 |
|
9 |
{% block main %} |
10 |
<h1 id="{% trans "about" %}-{{ room.name }}">{% trans "About" %} {{ room.name }}</h1> |
11 |
<h2 id="{% trans "properties" %}">{% trans "Properties" %}</h2> |
12 |
<table> |
13 |
<tr> |
14 |
<td>👥</td> |
15 |
<td>{{ room.seats }} {% trans "seats" %}</td> |
16 |
</tr> |
17 |
<tr> |
18 |
<td>🏷</td> |
19 |
<td>{{ room.get_category_display }}</td> |
20 |
</tr> |
21 |
<tr> |
22 |
{% if room.wheelchair_accessible %} |
23 |
<td>♿</td> |
24 |
<td>{% trans "Wheelchair accessible" %}</td> |
25 |
{% else %} |
26 |
<td>🚫</td> |
27 |
<td>{% trans "Not available for wheelchairs" %}</td> |
28 |
{% endif %} |
29 |
</tr> |
30 |
<tr> |
31 |
{% if room.computers_available > 0 %} |
32 |
<td>🖥</td> |
33 |
<td>{{ room.computers_available }} computers</td> |
34 |
{% else %} |
35 |
<td>🚫</td> |
36 |
<td>{% trans "No computers" %}</td> |
37 |
{% endif %} |
38 |
|
39 |
</tr> |
40 |
<tr> |
41 |
{% if room.projector_available %} |
42 |
<td>📽</td> |
43 |
<td>{% trans "Projector available" %}</td> |
44 |
{% else %} |
45 |
<td>🚫</td> |
46 |
<td>{% trans "No projector" %}</td> |
47 |
{% endif %} |
48 |
</tr> |
49 |
<tr> |
50 |
{% if room.reservable %} |
51 |
<td>✔</td> |
52 |
<td>{% trans "Reservable" %}</td> |
53 |
{% else %} |
54 |
<td>❌</td> |
55 |
<td>{% trans "Not reservable" %}</td> |
56 |
{% endif %} |
57 |
</tr> |
58 |
</table> |
59 |
{% if room.note %} |
60 |
<p> |
61 |
{{ room.note }} |
62 |
</p> |
63 |
{% endif %} |
64 |
|
65 |
<h2 id="{% trans "reservations-and-occupations" %}">{% trans "Reservations & occupations" %}</h2> |
66 |
{% include "administration/roster_t.djhtml" %} |
67 |
|
68 |
{% endblock main %} |
69 |