From 48296246c500d6de7a7a5b01764f5239afb63cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Brunet?= Date: Tue, 18 May 2021 23:46:08 +0200 Subject: [PATCH] Make some fields optional --- src/admin/config.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/admin/config.yml b/src/admin/config.yml index efa0a40..b49ab61 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -15,12 +15,13 @@ collections: - label: "Tags" name: "tags" widget: "list" + required: false summary: "{{fields.tag}}" field: {label: "Tag", name: "tag", widget: string} - - {label: "Preparation time", name: "time", widget: "string"} - - {label: "Number of servings", name: "servings", widget: "number"} - - {label: "Source of the recipe", name: "sourceLabel", widget: "string"} - - {label: "URL of the source of the recipe", name: "sourceURL", widget: "string"} + - {label: "Preparation time", name: "time", widget: "string", required: false} + - {label: "Number of servings", name: "servings", widget: "number", required: false} + - {label: "Source of the recipe", name: "sourceLabel", widget: "string", required: false} + - {label: "URL of the source of the recipe", name: "sourceURL", widget: "string", required: false} - label: "Ingredients" name: "ingredients" widget: "list"