comparison sat_templates/default/event/create.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 {# 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 %}