From 3b7c1edbc3c17e001ae7ea62836e9e27f226a18a Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 14 Oct 2022 09:57:56 +0000 Subject: [PATCH] Update config.yml --- static/admin/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index c64628a6..4595f833 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -228,7 +228,7 @@ collections: - {label: "Position", name: "weight", widget: "number"} - {label: "Untermenüs", name: "hasChildren", widget: "boolean"} - {label: "Link", name: "URL", widget: "string"} - - {label: "Untermenü von", name: "parent", widget: "relation", collection: "config", file: "hugo-config", search_fields: ['menu.main.*.name'], display_fields: ['menu.main.*.name'], value_field: "menu.main.*.name"} + - {label: "Untermenü von", name: "parent", widget: "relation", collection: "config", file: "hugo-config", search_fields: ['menu.main.*.name'], display_fields: ['menu.main.*.name'], value_field: "menu.main.*.name", required: "false"} - label: "unteres Menü" name: "footer" widget: "list" @@ -318,7 +318,8 @@ collections: widget: "list" fields: - {label: "Titel", name: "title", widget: "string", required: true} - - {label: "Datum", name: "date", widget: "datetime", required: true, date_format: "DD.MM.YYYY", time_format: "HH:mm"} + - {label: "Datum/Startdatum", name: "date", widget: "datetime", required: true, date_format: "DD.MM.YYYY", time_format: "HH:mm"} + - {label: "Enddatum", name: "enddate", widget: "datetime", required: false, date_format: "DD.MM.YYYY", time_format: "HH:mm"} - {label: "Ort", name: "location", widget: "string", required: true} - {label: "Beschreibung", name: "summary", widget: "string", required: false} required: false