From c6f214b3d203eb5f17eabdbfb5c761c3b1e288b3 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 28 Jul 2024 03:51:33 +0200 Subject: [PATCH] Add image:menu and website:menu-options to the food theme --- assets/layers/food/food.json | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/assets/layers/food/food.json b/assets/layers/food/food.json index 9719ebcb6..056b7930c 100644 --- a/assets/layers/food/food.json +++ b/assets/layers/food/food.json @@ -523,6 +523,44 @@ ], "id": "Cuisine" }, + { + "id": "show-menu-image", + "render": { + "*": "{image_carousel(image:menu)}" + } + }, + { + "id": "add-menu-image", + "render": { + "special": { + "type": "image_upload", + "image-key": "image:menu", + "label": { + "en": "Add an image from the menu", + "nl": "Voeg een foto van het menu toe" + } + } + } + }, + { + "id": "menu-website", + "question": { + "en": "On what webpage is the menu published?" + }, + "render": { + "special": { + "type": "link", + "href": "{website:menu}", + "text": { + "en": "Consult the menu" + } + } + }, + "freeform": { + "key": "website:menu", + "type": "url" + } + }, { "id": "Reservation", "condition": "takeaway!=only",