comparison sat_templates/templates/default/event/create.html @ 164:e9f0a4215e46

multi-sites handling (moved templates to "templates" sub-directory) + noscript styles handling.
author Goffi <goffi@goffi.org>
date Mon, 10 Sep 2018 08:53:33 +0200
parents sat_templates/default/event/create.html@80cf52fbcc40
children
comparison
equal deleted inserted replaced
163:33f67228686a 164:e9f0a4215e46
1 {# create a new event #}
2
3 {% extends 'base/base.html' %}
4 {% import 'input/form.html' as form with context %}
5 {% import 'input/field.html' as field with context %}
6
7 {% block body %}
8 <div class='instructions--head'>
9 {% trans %}Create an event{% endtrans %}
10 </div>
11 <div class="box--hollow">
12 {% call form.form(class="form--paper form__panel--vertical") %}
13 {{ field.text("name", _("name"), required=true) }}
14 {{ field.text("location", _("location"), required=true) }}
15 {{ field.textarea("body",
16 _("description of the event"),
17 required=true,
18 class="form__field--medium") }}
19 {{ field.date("date", _("date of the event"), required=true) }}
20 {{ field.url("main_image", _("event image URL (https)"),
21 title=_("you can enter here the URL to a JPEG or PNG image to use as representation of your event"),
22 placeholder=_("JPEG or PNG image URL"),
23 pattern='http.*(jpg|jpeg|png)') }}
24 {{ field.url("bg_image", _("background image URL (https)"),
25 title=_("you can enter here the URL to a JPEG or PNG image to use repeating background"),
26 placeholder=_("JPEG or PNG image URL"),
27 pattern='http.*(jpg|jpeg|png)') }}
28 {{ field.submit(_("Create event")) }}
29 {% endcall %}
30 </div>
31 {% endblock body %}