From c1a25af54da0e11d0998ad56b0dec4af40008a76 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Wed, 9 Aug 2023 18:26:06 +0200 Subject: [PATCH] Add check_date, payment, allow move and delete --- assets/layers/questions/questions.json | 27 +++++++++++++++++++ .../themes/elongated_coin/elongated_coin.json | 23 +++++++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/assets/layers/questions/questions.json b/assets/layers/questions/questions.json index 3774c0a91..678b0b402 100644 --- a/assets/layers/questions/questions.json +++ b/assets/layers/questions/questions.json @@ -2174,6 +2174,33 @@ } } ] + }, + { + "id": "check_date", + "question": { + "en": "When was this object last checked?", + "de": "Wann wurde dieses Objekt zuletzt kontrolliert?", + "nl": "Wanneer is dit object voor het laatst gecontroleerd?" + }, + "freeform": { + "key": "check_date", + "type": "date" + }, + "render": { + "en": "This object was last checked on {check_date}", + "de": "Dieses Objekt wurde zuletzt kontrolliert am {check_date}", + "nl": "Dit object is voor het laatst gecontroleerd op {check_date}" + }, + "mappings": [ + { + "if": "check_date:={_now:date}", + "then": { + "en": "This object was last checked today", + "de": "Dieses Objekt wurde heute zuletzt kontrolliert", + "nl": "Dit object is vandaag voor het laatst gecontroleerd" + } + } + ] } ] } \ No newline at end of file diff --git a/assets/themes/elongated_coin/elongated_coin.json b/assets/themes/elongated_coin/elongated_coin.json index 627ce25b4..d1a97f492 100644 --- a/assets/themes/elongated_coin/elongated_coin.json +++ b/assets/themes/elongated_coin/elongated_coin.json @@ -86,6 +86,21 @@ } ] }, + { + "id": "payment", + "builtin": "payment-options-split", + "override": { + "mappings": [ + {}, + {}, + {}, + {}, + { + "hideInAnswer": true + } + ] + } + }, { "id": "coin", "question": { @@ -205,7 +220,8 @@ } ] }, - "level" + "level", + "check_date" ], "mapRendering": [ { @@ -235,6 +251,11 @@ ] } ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": true + }, + "deletion": true, "filter": [ "open_now" ]