joeni

roster.djhtml

1
{% extends "joeni/base.djhtml" %}
2
{% cycle "hour" "first quarter" "half" "last quarter" as hour silent %}
3
{# "silent" blocks the cycle operator from printing the cycler, and in subsequent calls #}
4
{% load i18n %}
5
6
{% block title %}
7
    {% trans "Roster" %} | {{ block.super }}
8
{% endblock %}
9
10
{% block main %}
11
    <h1>{% trans "Personal timetable" %}</h1>
12
    <h2>{% trans "Main hour roster" %}</h2>
13
    <div style="line-height: 2.5em;">
14
        <a class="btn" href="{% url "administration-roster" begin=prev_begin end=prev_end %}">{% trans "Previous&nbsp;week" %}</a>
15
        <a class="btn" href="{% url "administration-roster" %}">{% trans "Current&nbsp;week" %}</a>
16
        <a class="btn" href="{% url "administration-roster" begin=next_begin end=next_end %}">{% trans "Next&nbsp;week" %}</a>
17
        <a class="btn" href="{% url "administration-roster-ics" user_slug=2 %}">{% trans "ICS&nbsp;file" %}</a>
18
        </div>
19
20
21
    {% include "administration/roster_t.djhtml" %}
22
23
24
        {# TODO: Add links to "previous week", "next week" and "current week" with large buttons #}
25
26
    <h2>{% trans "Explanation" %}</h2>
27
    <p>
28
        {% trans "Personal roster from" %} {{ begin|date }} {% trans "to" %} {{ end|date }}
29
    </p>
30
    <p>
31
        {% blocktrans %}
32
            Some fields may have additional information that might be of interest
33
            to you. This information is shown in different ways with colour codes.
34
        {% endblocktrans %}
35
    </p>
36
37
    <dl>
38
        <dt><span class="event-update">
39
            {% trans "Recent event update" %}
40
        </span></dt>
41
        <dd>
42
            {% blocktrans %}
43
                This event had one or more of its properties changed
44
                in the last five days. This can be the room, the hours, the subject, ...
45
                You're encouraged to take note of that.
46
            {% endblocktrans %}
47
        </dd>
48
        <dt><span class="event-new">
49
            {% trans "New event" %}
50
        </span></dt>
51
        <dd>
52
            {% blocktrans %}
53
                This is a new event, added in the last five days.
54
            {% endblocktrans %}
55
        </dd>
56
        <!--<dt><span class="event-note">
57
            {% trans "Notification available" %}
58
        </span></dt>
59
        <dd>
60
            {% blocktrans %}
61
                This event has a note attached to it by the docent. Hover over
62
                the event to display the note.
63
            {% endblocktrans %}
64
        </dd>-->
65
    </dl>
66
67
{% endblock main %}
68