annotate sat_templates/templates/default/event/admin.html @ 356:e3e11ced9f8f

bulma: new `retry-notification` template: this template is used notably when server connection is lost, and it will be checked again after a delay.
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 17:03:57 +0200
parents 40fccd3b7cf0
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
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>
231
aa37750c2617 theme (default): various fixes:
Goffi <goffi@goffi.org>
parents: 220
diff changeset
36 </tr>
220
f7d6ae06c42f python 3 port: replaced iteritems() by items() for dictionaries
Goffi <goffi@goffi.org>
parents: 166
diff changeset
37 {% for name, data in invitees.items() %}
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
38 <tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
39 <td>{{name}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
40 <td>{{data.attend|default('')}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
41 {% if data.attend == 'no' %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
42 <td>&nbsp;</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
43 {% else %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
44 <td>{{data.guests|default(0)}}</td>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
45 {% endif %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
46 </tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
47 {% endfor %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
48 <tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
49 <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
50 <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
51 </tr>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
52 </table>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
53 {% else %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
54 <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
55 {% endif %}
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
56 </div>
166
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
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
59 <div class="tab__page" id="tab_invitations">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
60 {% 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
61 {{ textbox.head(event_service, event_node, 'event') }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
62 {{ field.meta('event_id', event_id) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
63 {{ field.textarea("jids",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
64 _("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
65 class="form__field--medium") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
66 {{ field.textarea("emails",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
67 _("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
68 class="form__field--medium") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
69 {{ field.submit(_("Invite people")) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
70 {% endcall %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
71 </div>
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
72
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
73 <div class="tab__page" id="tab_new_post">
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
74 {% 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
75 {{ textbox.head(service, node, 'blog') }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
76 {{ field.text("title",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
77 _("title"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
78 class="form__field--big") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
79 {{ field.textarea("body",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
80 _("body"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
81 class="form__field--big") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
82 {{ field.text("language",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
83 _("language"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
84 class="form__field--tiny") }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
85 {{ field.checkbox("comments",
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
86 _("allow comments"),
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
87 checked=true) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
88 {{ field.submit(_("send")) }}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
89 {% endcall %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
90 </div>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
91
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
92 <div class="tab__page" id="tab_blog">
247
40fccd3b7cf0 updated code to handle blog items following data structure change in backend/Libervia
Goffi <goffi@goffi.org>
parents: 231
diff changeset
93 {% if blog_items is defined %}
166
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
94 {% include 'blog/articles.html' %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
95 {% endif %}
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
96 </div>
178f55b825b7 small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents: 164
diff changeset
97
154
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
98 </div>
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
99
80cf52fbcc40 events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff changeset
100 {% endblock body %}