From a10ed36055a96266da944e341b99ca04a8c9df23 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 13 Feb 2019 23:49:49 +0100 Subject: [PATCH] Start creating kalendar --- content/contents.lr | 2 ++ databags/termine.ini | 19 +++++++++++++++++++ models/start.ini | 5 +++++ templates/start.html | 4 +++- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 databags/termine.ini diff --git a/content/contents.lr b/content/contents.lr index ee5a380..d61b033 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -108,3 +108,5 @@ hinweis_txt: mach mit! hinweis_url: /mitmachen/ --- sections: +--- +render_tourdaten: yes diff --git a/databags/termine.ini b/databags/termine.ini new file mode 100644 index 0000000..17899c1 --- /dev/null +++ b/databags/termine.ini @@ -0,0 +1,19 @@ +[termine] +datum[0] = foo +event[0] = bar +ort[0] = baz +url[0] = 42 + +datum[] = foo +event[] = bar +ort[] = baz1 +url[] = 42 + +datum[] = foo +event[] = bar +ort[] = baz2 +url[] = 42 + + + + diff --git a/models/start.ini b/models/start.ini index 43427d8..67aa57b 100644 --- a/models/start.ini +++ b/models/start.ini @@ -81,6 +81,11 @@ type = string label = 4. Abschnitt: Text type = markdown +[fields.render_tourdaten] +label = Render Termine? +default = false +type = boolean + [fields.icons_1_1] label = 1. Icon: Font Awesome type = string diff --git a/templates/start.html b/templates/start.html index 566af32..18742ce 100644 --- a/templates/start.html +++ b/templates/start.html @@ -61,7 +61,9 @@

{{ this.icons_header }}

{{ this.icons_text }} -
+ {% if this.render_tourdaten %} + {{ bag('termine', 'termine', 'ort[]') }} + {% endif %}