+
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 4fc3107..1286eab 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -743,7 +743,8 @@ collections:
filter: {field: "type", value: "ganztagsangebote"}
create: true
editor:
- preview: false
+ preview: true
+ frame: true
media_folder: '/static/media/ganztagsangebote'
public_folder: '/media/ganztagsangebote'
fields:
@@ -778,7 +779,8 @@ collections:
filter: {field: "type", value: "wettbewerbe"}
create: true
editor:
- preview: false
+ preview: true
+ frame: true
media_folder: '/static/media/contests'
public_folder: '/media/contests'
fields:
diff --git a/static/admin/index.html b/static/admin/index.html
index cf08ef3..3e70288 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -17,12 +17,16 @@
-
+
+
+
+
-
@@ -539,19 +515,11 @@
h('div', {className: "col-md-8"},
h('ul', {className: "list-inline"},
h('li', {className: "list-inline-item h2"},
- h('a', {className: "text-primary font-secondary", href: ""}, "Startseite")
- ),
+ h('a', {className: "text-primary font-secondary", href: ""}, "Startseite")),
h('li', {className: "list-inline-item h2"},
- h("i", {className: "mdi mdi-chevron-double-right text-white"})
- ),
- h('li', {className: "list-inline-item text-white h2 font-secondary"}, entry.data.title
- )
- ),
- h('p', {className: "text-lighten"}, entry.data.description)
- )
- )
- )
- ),
+ h("i", {className: "mdi mdi-chevron-double-right text-white"})),
+ h('li', {className: "list-inline-item text-white h2 font-secondary"}, entry.data.title)),
+ h('p', {className: "text-lighten"}, entry.data.description))))),
h('section', {className: "section"},
h('div', {className: "container"},
h('div', {className: "row"},
@@ -562,31 +530,19 @@
h('div', {className: "d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-0 termin-tc"}, event.data.date != null && event.data.date != "" ?
h('span', {className: "h2 d-block"}, Intl.DateTimeFormat('de-De', { day: 'numeric'}).format(new Date(event.data.date))) : "",
h('span', {className: "d-block"}, event.data.date != null && event.data.date != "" ? Intl.DateTimeFormat('de-De', { month: 'short', year: 'numeric' }).format(new Date(event.data.date)) : ""),
- event.data.enddate != null && event.data.enddate != "" ? [h('br'), Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'short', year: 'numeric'}).format(new Date(event.data.date))] : null
- ),
+ event.data.enddate != null && event.data.enddate != "" ? [h('br'), Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'short', year: 'numeric'}).format(new Date(event.data.date))] : null),
h('div', {className: "d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0 p-2"},
- h('p', {className: "h4 mb-0 d-block"}, event.data.title)
- ),
+ h('p', {className: "h4 mb-0 d-block"}, event.data.title)),
event.data.location != null && event.data.location != "" ?
h('div', {className: "d-md-table-cell text-right pr-0 pr-md-4 p-2 vertical-align-middle"},
h('p', {},
- h('i', {className: "mdi mdi-map-marker-radius-outline icon-s text-primary mr-2"}),
- event.data.location
- )
- ) : null
- );
- })
- )
- )
- )
- )
- )
- );
+ h('i', {className: "mdi mdi-map-marker-radius-outline icon-s text-primary mr-2"}), event.data.location)) : null);
+ })))))));
};
CMS.registerPreviewTemplate("event-index", EventPreview);
+
+