Mercurial > libervia-templates
annotate sat_templates/templates/default/event/create.html @ 413:0190a0d32909 default tip
Forum: Major redesign of forums:
Forums have been redesigned. They follow the new general design with 2 or 3 panels,
allowing to have directly a forum if one is found/set up, and a panel on the left to
search/discover other ones.
Categories have been rewritten to be usable with pubsub relationships, a XEP-0277 type
node is used for topics, and each item has a comments node for the threads.
The thread view is set in `forum/show_messages.html` template. It has a header with a
search box and a button to (un)subscribe.
Items are displayed with the same macros as for the blog items.
Below a room is set for editor, tags and attachments.
rel 463
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Sep 2025 21:54:09 +0200 |
parents | e9f0a4215e46 |
children |
rev | line source |
---|---|
154
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 {# create a new event #} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 {% extends 'base/base.html' %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 {% import 'input/form.html' as form with context %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 {% import 'input/field.html' as field with context %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 {% block body %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 <div class='instructions--head'> |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 {% trans %}Create an event{% endtrans %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 </div> |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 <div class="box--hollow"> |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 {% call form.form(class="form--paper form__panel--vertical") %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 {{ field.text("name", _("name"), required=true) }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 {{ field.text("location", _("location"), required=true) }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 {{ field.textarea("body", |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 _("description of the event"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 required=true, |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 class="form__field--medium") }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 {{ field.date("date", _("date of the event"), required=true) }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 {{ field.url("main_image", _("event image URL (https)"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 title=_("you can enter here the URL to a JPEG or PNG image to use as representation of your event"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 placeholder=_("JPEG or PNG image URL"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 pattern='http.*(jpg|jpeg|png)') }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 {{ field.url("bg_image", _("background image URL (https)"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 title=_("you can enter here the URL to a JPEG or PNG image to use repeating background"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 placeholder=_("JPEG or PNG image URL"), |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 pattern='http.*(jpg|jpeg|png)') }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 {{ field.submit(_("Create event")) }} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 {% endcall %} |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 </div> |
80cf52fbcc40
events: added admin, create and overview templates
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 {% endblock body %} |