From 3e8ff468ff4a3601360ad8a00d7a456f8cb9e68d Mon Sep 17 00:00:00 2001 From: Osmuser63783 Date: Mon, 1 Jul 2024 00:26:15 +0100 Subject: [PATCH 1/6] Added camp_site.json --- data/fields/camp_site.json | 13 +++++++++++++ data/presets/tourism/camp_site.json | 1 + 2 files changed, 14 insertions(+) create mode 100644 data/fields/camp_site.json diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json new file mode 100644 index 000000000..cb1cf6433 --- /dev/null +++ b/data/fields/camp_site.json @@ -0,0 +1,13 @@ +{ + "key": "camp_site", + "type": "combo", + "label": "Type", + "strings": { + "options": { + "basic": "Basic (nothing but a place to pitch a tent or park a vehicle)", + "standard": "Standard (has toilets, water)", + "serviced": "Serviced (above plus shower, electricity)", + "deluxe": "Deluxe (above plus laundry, swimming pool or similar)" + } + } +} \ No newline at end of file diff --git a/data/presets/tourism/camp_site.json b/data/presets/tourism/camp_site.json index 153f562b7..a80527541 100644 --- a/data/presets/tourism/camp_site.json +++ b/data/presets/tourism/camp_site.json @@ -3,6 +3,7 @@ "fields": [ "name", "operator", + "camp_site", "address", "access_simple", "capacity/persons", From 8f7c01f7c1f75228e47a57365ccccd9a2a0264d8 Mon Sep 17 00:00:00 2001 From: Osmuser63783 Date: Sun, 14 Jul 2024 13:06:25 +0100 Subject: [PATCH 2/6] Enumerated options to prevent reception from showing --- data/fields/camp_site.json | 1 + 1 file changed, 1 insertion(+) diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json index cb1cf6433..7fca73039 100644 --- a/data/fields/camp_site.json +++ b/data/fields/camp_site.json @@ -2,6 +2,7 @@ "key": "camp_site", "type": "combo", "label": "Type", + "options": ["basic", "standard", "serviced", "deluxe"], "strings": { "options": { "basic": "Basic (nothing but a place to pitch a tent or park a vehicle)", From 514d68adc7cd011fe815ca149f299688cec122f8 Mon Sep 17 00:00:00 2001 From: Osmuser63783 Date: Sun, 14 Jul 2024 13:11:12 +0100 Subject: [PATCH 3/6] Code style --- data/fields/camp_site.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json index 7fca73039..b859a7c48 100644 --- a/data/fields/camp_site.json +++ b/data/fields/camp_site.json @@ -2,7 +2,12 @@ "key": "camp_site", "type": "combo", "label": "Type", - "options": ["basic", "standard", "serviced", "deluxe"], + "options": [ + "basic", + "standard", + "serviced", + "deluxe" + ], "strings": { "options": { "basic": "Basic (nothing but a place to pitch a tent or park a vehicle)", From 09b6df511fb81e78039dac4ae2ee9b0c374db8e4 Mon Sep 17 00:00:00 2001 From: Osmuser63783 Date: Sun, 14 Jul 2024 13:53:52 +0100 Subject: [PATCH 4/6] Make Prettier happy --- data/fields/camp_site.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json index b859a7c48..a689af854 100644 --- a/data/fields/camp_site.json +++ b/data/fields/camp_site.json @@ -16,4 +16,4 @@ "deluxe": "Deluxe (above plus laundry, swimming pool or similar)" } } -} \ No newline at end of file +} From 847c73afd156214bc60bcfcf3a8b2e829c2f02fc Mon Sep 17 00:00:00 2001 From: Osmuser63783 Date: Sun, 14 Jul 2024 14:13:22 +0100 Subject: [PATCH 5/6] camp_site.json: Set autoSuggestions to false to prevent other values being pulled from Taginfo --- data/fields/camp_site.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json index a689af854..d2f723ead 100644 --- a/data/fields/camp_site.json +++ b/data/fields/camp_site.json @@ -15,5 +15,6 @@ "serviced": "Serviced (above plus shower, electricity)", "deluxe": "Deluxe (above plus laundry, swimming pool or similar)" } - } + }, + "autoSuggestions": false } From 05b612bfc1baa64d8c37e5f2220e746a842daf7c Mon Sep 17 00:00:00 2001 From: osmuser63783 <127188803+osmuser63783@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:21:25 +0100 Subject: [PATCH 6/6] Update data/fields/camp_site.json to shorten titles and move more info to description Co-authored-by: Martin Raifer --- data/fields/camp_site.json | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/data/fields/camp_site.json b/data/fields/camp_site.json index d2f723ead..db9f42171 100644 --- a/data/fields/camp_site.json +++ b/data/fields/camp_site.json @@ -10,10 +10,22 @@ ], "strings": { "options": { - "basic": "Basic (nothing but a place to pitch a tent or park a vehicle)", - "standard": "Standard (has toilets, water)", - "serviced": "Serviced (above plus shower, electricity)", - "deluxe": "Deluxe (above plus laundry, swimming pool or similar)" + "basic": { + "title": "Basic (only tent/vehicle spots)", + "description": "Nothing but a place to pitch a tent or park a vehicle" + }, + "standard": { + "title": "Standard (offers toilets and water)", + "description": "Toilets and water are provided or available nearby" + }, + "serviced": { + "title": "Serviced (offers showers and electricity)", + "description": "Toilets, water, showers and electricity are provided" + }, + "deluxe": { + "title": "Deluxe (offers laundry or swimming pool, etc.)", + "description": "Fully serviced and has additional amenities like a laundry, swimming pool or similar recreation facilities" + } } }, "autoSuggestions": false