details.html 4.52 KB
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
3
{% extends 'admin/index.html' %}
{% load i18n admin_urls static admin_modify %}

4
{% block title %}{{ event.title }} | {{ site_title|default:_('Thalia site admin') }}{% endblock %}
5
{% block opengraph_title %}{{ event.title }} | {{ site_title|default:_('Thalia site admin') }}{% endblock %}
Thom Wiggers's avatar
Thom Wiggers committed
6

7
8
9
10
{% block extrastyle %}
    {{ block.super }}
    <link href="{% static "events/css/admin.css" %}" rel="stylesheet" type="text/css">
{% endblock %}
11

12
13
14
15
16
17
18
{% block extrahead %}
    {{ block.super }}
    <script type="text/javascript" src="{% static "admin/js/vendor/jquery/jquery.js" %}"></script>
    <script type="text/javascript" src="{% static "admin/js/jquery.init.js" %}"></script>
    <script type="text/javascript" src="{% static "events/js/admin.js" %}"></script>
{% endblock %}

19
20
21
22
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Thalia administration') }}</a></h1>
{% endblock %}

Thom Wiggers's avatar
Thom Wiggers committed
23
24
25
26
27
28
29
30
31
32
33
{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="{% url 'admin:index' %}">{% trans 'home'|capfirst %}</a>
    &rsaquo; <a href="{% url 'admin:app_list' app_label='events' %}">{% trans 'events'|capfirst %}</a>
    &rsaquo; <a href="/admin/events/event/">{% trans 'events'|capfirst %}</a>
    &rsaquo; {{ event.title }}
</div>
{% endblock %}

{% block content_title %}<h1>{% blocktrans with event=event.title %}Event overview: {{ event }}{% endblocktrans %}</h1>{% endblock %}
{% block content %}
34
<div id="content-main" data-url="{% url 'events:admin-registration' event.id %}">
Thom Wiggers's avatar
Thom Wiggers committed
35
36
37
    <div class="module">
        {% with event.registrationinformationfield_set.all as fields %}
        <h2>{% trans "registrations"|capfirst %}</h2>
38
        {% include 'events/admin/registrations_table.html' with registrations=event.participants %}
Thom Wiggers's avatar
Thom Wiggers committed
39
        <br>
40
        {% if event.queue.count > 0 %}
Thom Wiggers's avatar
Thom Wiggers committed
41
        <h2>{% trans "waiting"|capfirst %}</h2>
42
        {% trans "queued" as queued %}
43
        {% include 'events/admin/registrations_table.html' with registrations=event.queue verb=queued addlink=False %}
Thom Wiggers's avatar
Thom Wiggers committed
44
45
46
        <br>
        {% endif %}
        <h2>{% trans "cancellations"|capfirst %}</h2>
47
        {% trans "cancelled" as cancelled %}
48
        {% include 'events/admin/registrations_table.html' with registrations=event.cancellations verb=cancelled addlink=False %}
Thom Wiggers's avatar
Thom Wiggers committed
49
        {% endwith %}
Thom Wiggers's avatar
Thom Wiggers committed
50
51
        <br>
        <a href="{% url 'events:export' event_id=event.pk %}" class="button">{% trans "Export registrations" %}</a>
52
        <a href="{% url 'events:export_email' event_id=event.pk %}" class="button">{% trans "Export email addresses of attendees" %}</a>
53
        <a href="{% url 'events:all_present' event_id=event.pk %}" class="button">{% trans "Set all registered to paid and present" %}</a>
Thom Wiggers's avatar
Thom Wiggers committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
    </div>
</div>
{% endblock %}

{% block sidebar %}
<div id="content-related">
    <div class="module">
        <h2>{% trans "Event properties" %} —
            <a class="changelink"
                href="{% url 'admin:events_event_change' event.pk %}?next={{ request.get_full_path|urlencode }}">
                {% trans "change"|capfirst %}
            </a>
        </h2>
        <dl class="actionlist">
            <dt>{% trans "title"|capfirst %}</dt>
            <dd>{{ event.title }}</dd>
            <dt>{% trans "date"|capfirst %}</dt>
71
            <dd>{{ event.start }} <br>— {{ event.end }}</dd>
Thom Wiggers's avatar
Thom Wiggers committed
72
73
74
75
76
77
78
79
80
            <dt>{% trans "organiser"|capfirst %}</dt>
            <dd>{{ event.organiser }}</dd>
            <dt>{% trans "registration period"|capfirst %}</dt>
            <dd>{{ event.registration_start }} <br>— {{ event.registration_end }}</dd>
            <dt>{% trans "location"|capfirst %}</dt>
            <dd>{{ event.location }} ({{ event.map_location }})</dd>
            <dt>{% trans "price"|capfirst %}</dt>
            <dd>{{ event.price }}</dd>
            <dt>{% trans "cost"|capfirst %}</dt>
81
            <dd>{{ event.fine }}</dd>
Thom Wiggers's avatar
Thom Wiggers committed
82
83
84
85
86
87
            <dt>{% trans "registration required"|capfirst %}</dt>
            <dd>{{ event.registration_required|yesno }}</dd>
            {% if not event.registration_required %}
            <dt>{% trans "registration message"|capfirst %}</dt>
            <dd>{{ event.registration_message|default:event.DEFAULT_NO_REGISTRATION_MESSAGE }}</dd>
            {% endif %}
88
89
            <dt>{% trans "number of registrations"|capfirst %}</dt>
            <dd>
90
                {% blocktrans count counter=event.registrations|length trimmed %}
91
92
93
94
95
                    {{ counter }} registration
                {% plural %}
                    {{ counter }} registrations
                {% endblocktrans %}
            </dd>
Thom Wiggers's avatar
Thom Wiggers committed
96
97
98
99
        </dl>
    </div>
</div>
{% endblock %}