comparison sat_templates/default/event/admin.html @ 154:80cf52fbcc40

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