annotate sat_templates/default/event/admin.html @ 162:001c9855e747 0.7.0a2

0.7.0a2 release
author Goffi <goffi@goffi.org>
date Sun, 15 Jul 2018 08:57:39 +0200
parents 80cf52fbcc40
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% extends 'base/base.html' %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/form.html' as form with context %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/field.html' as field with context %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% import 'input/textbox.html' as textbox with context %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
5
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {% block body %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
7 <div class='invitation_header box'>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
8 <h1>{% trans name=event.name %}{{name}} administration{% endtrans %}</h1>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {% if event.image is defined %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <p><img class='event__picture' src="{{event.image}}"></p>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% endif %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {% if event.description is defined %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
13 <p>{{event.description}}</p>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
14 {% endif %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
15 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
16
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
17 {% include 'event/counter.html' %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
18
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% if invitees %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
20 <div class="box">
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
21 <h3 class="title">{% trans %}invitees{% endtrans %}</h3>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
22 <table class="table--main">
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
23 <tr>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
24 <th>{% trans %}name{% endtrans %}</th>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
25 <th>{% trans %}coming?{% endtrans %}</th>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
26 <th>{% trans %}guests{% endtrans %}</th>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
27 {% for name, data in invitees.iteritems() %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
28 <tr>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
29 <td>{{name}}</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
30 <td>{{data.attend|default('')}}</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
31 {% if data.attend == 'no' %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
32 <td>&nbsp;</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
33 {% else %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
34 <td>{{data.guests|default(0)}}</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
35 {% endif %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
36 </tr>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
37 {% endfor %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
38 <tr>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
39 <td colspan=2 class="table__total">{% trans %}total expected{% endtrans %}</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
40 <td class="table__total_value">{{invitees_guests|default('0')}}</td>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
41 </tr>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
42 </table>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
43 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
44 {% endif %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
45
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
46 <div class="box">
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
47 <h3 class="title">{% trans %}invite people{% endtrans %}</h3>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
48 {% call form.form(class="form--paper form__panel--vertical form__panel--center") %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
49 {{ textbox.head(event_service, event_node, 'event') }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
50 {{ field.meta('event_id', event_id) }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
51 {{ field.textarea("jids",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
52 _("enter here a list of jid (one per line) to invite"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
53 class="form__field--medium") }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
54 {{ field.textarea("emails",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
55 _("enter here a list of emails addresses (one per line) to invite"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
56 class="form__field--medium") }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
57 {{ field.submit(_("Invite people")) }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
58 {% endcall %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
59 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
60
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
61 <div class="box">
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
62 <h3 class="title">{% trans %}write a blog post{% endtrans %}</h3>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
63 {% call form.form(class="form--paper form__panel--vertical form__panel--center") %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
64 {{ textbox.head(service, node, 'blog') }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
65 {{ field.text("title",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
66 _("title"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
67 class="form__field--big") }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
68 {{ field.textarea("body",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
69 _("body"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
70 class="form__field--big") }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
71 {{ field.text("language",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
72 _("language"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
73 class="form__field--tiny") }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
74 {{ field.checkbox("comments",
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
75 _("allow comments"),
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
76 checked=true) }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
77 {{ field.submit(_("send")) }}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
78 {% endcall %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
79 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
80
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
81 {% if items is defined %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
82 {% include 'blog/articles.html' %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
83 {% endif %}
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
84
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
85 {% endblock body %}