From ca96badb3a799da128e1dc41c8188680b6c0cf19 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 14 Oct 2021 21:06:03 +0200 Subject: [PATCH] fixed datetime widget --- static/admin/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index ec857beb..8cbc24c1 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -289,8 +289,8 @@ collections: public_folder: '/media/events' fields: - {label: "Titel", name: "title", widget: "string"} - - {label: "Veröffentlichungsdatum", name: "publishDate", widget: "datetime"} - - {label: "Datum", name: "date", widget: "datetime"} + - {label: "Veröffentlichungsdatum", name: "publishDate", widget: "datetime", date_format: "DD.MM.YYYY", time_format: "HH:mm"} + - {label: "Termindatum", name: "date", widget: "datetime", date_format: "DD.MM.YYYY", time_format: "HH:mm"} - {label: "Entwurf", name: "draft", widget: "boolean", default: "false", required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.png"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false} @@ -310,7 +310,7 @@ collections: public_folder: '/media/forms' fields: - {label: "Titel", name: "title", widget: "string"} - - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime"} + - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime", date_format: "DD.MM.YYYY", time_format: "HH:mm"} - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.png"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false} @@ -365,7 +365,7 @@ collections: public_folder: '/media/ganztagsangebote' fields: - {label: "Titel", name: "title", widget: "string"} - - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime"} + - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime", date_format: "DD.MM.YYYY", time_format: "HH:mm"} - {label: "Entwurf", name: "draft", widget: "boolean", default: "false", required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.png"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false} @@ -396,7 +396,7 @@ collections: public_folder: '/media/notice' fields: - {label: "Titel", name: "title", widget: "string"} - - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime"} + - {label: "Veröffentlichungsdatum", name: "date", widget: "datetime", date_format: "DD.MM.YYYY", time_format: "HH:mm"} - {label: "Entwurf", name: "draft", widget: "boolean", default: "false", required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.png"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false}