annotate sat_templates/templates/default/event/admin.html @ 220:f7d6ae06c42f

python 3 port: replaced iteritems() by items() for dictionaries
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 08:56:22 +0200
parents 178f55b825b7
children aa37750c2617
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
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
19 <div class="tab__container">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
20 <div class="tab__header">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
21 <ul>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
22 <li class="tab__btn state_clicked" onclick='tab_select(this, "tab_guests")'>{% trans %}Invitees{% endtrans %}</li>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
23 <li class="tab__btn" onclick='tab_select(this,"tab_invitations")'>{% trans %}Invite people{% endtrans %}</li>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
24 <li class="tab__btn" onclick='tab_select(this,"tab_new_post")'>{% trans %}Write a blog post{% endtrans %}</li>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
25 <li class="tab__btn" onclick='tab_select(this,"tab_blog")'>{% trans %}Read event blog{% endtrans %}</li>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
26 </ul>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
27 </div>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
28
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
29 <div class="tab__page state_clicked" id="tab_guests">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
30 {% if invitees %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
31 <table class="table--main">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
32 <tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
33 <th>{% trans %}name{% endtrans %}</th>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
34 <th>{% trans %}coming?{% endtrans %}</th>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
35 <th>{% trans %}guests{% endtrans %}</th>
220
f7d6ae06c42f python 3 port: replaced iteritems() by items() for dictionaries
Goffi <goffi@goffi.org>
parents: 166
diff changeset
36 {% for name, data in invitees.items() %}
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
37 <tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
38 <td>{{name}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
39 <td>{{data.attend|default('')}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
40 {% if data.attend == 'no' %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
41 <td>&nbsp;</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
42 {% else %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
43 <td>{{data.guests|default(0)}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
44 {% endif %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
45 </tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
46 {% endfor %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
47 <tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
48 <td colspan=2 class="table__total">{% trans %}total expected{% endtrans %}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
49 <td class="table__total_value">{{invitees_guests|default('0')}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
50 </tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
51 </table>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
52 {% else %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
53 <p class="message--info">{% trans %}No invitee has answered yet{% endtrans %}</p>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
54 {% endif %}
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
55 </div>
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
56
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
57
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
58 <div class="tab__page" id="tab_invitations">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
59 {% call form.form(class="form--paper form__panel--vertical form__panel--center") %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
60 {{ textbox.head(event_service, event_node, 'event') }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
61 {{ field.meta('event_id', event_id) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
62 {{ field.textarea("jids",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
63 _("enter here a list of jid (one per line) to invite"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
64 class="form__field--medium") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
65 {{ field.textarea("emails",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
66 _("enter here a list of emails addresses (one per line) to invite"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
67 class="form__field--medium") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
68 {{ field.submit(_("Invite people")) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
69 {% endcall %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
70 </div>
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
71
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
72 <div class="tab__page" id="tab_new_post">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
73 {% call form.form(class="form--paper form__panel--vertical form__panel--center") %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
74 {{ textbox.head(service, node, 'blog') }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
75 {{ field.text("title",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
76 _("title"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
77 class="form__field--big") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
78 {{ field.textarea("body",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
79 _("body"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
80 class="form__field--big") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
81 {{ field.text("language",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
82 _("language"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
83 class="form__field--tiny") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
84 {{ field.checkbox("comments",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
85 _("allow comments"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
86 checked=true) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
87 {{ field.submit(_("send")) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
88 {% endcall %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
89 </div>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
90
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
91 <div class="tab__page" id="tab_blog">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
92 {% if items is defined %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
93 {% include 'blog/articles.html' %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
94 {% endif %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
95 </div>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
96
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
97 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
98
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
99 {% endblock body %}