Mercurial > libervia-templates
annotate sat_templates/templates/default/event/create.html @ 209:d586ea13cfed
blog: fixed setting of title:
title was not show when embedded was True, but this is always the case (articles.html
template is always shown in base.html). A new "blog_page" boolean is set when
articles.html is the main page displayed (i.e. blog posts are not embedded in an other
page like events), and use to display the title, fixing the originally intented behaviour.
fix 298
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Jun 2019 12:49:04 +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 %} |