annotate sat_templates/templates/default/event/create.html @ 197:9fe8fdcd53d9

invitation: show events/photo albums/file sharing from list of interests + removed specific CSS file
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 23:58:07 +0200
parents e9f0a4215e46
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 {# 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 %}