Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt capacity tags for camp sites etc. #107

Merged
merged 12 commits into from
Dec 15, 2021
7 changes: 7 additions & 0 deletions data/fields/capacity/caravans.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "capacity:caravans",
"type": "number",
"minValue": 0,
"label": "Capacity (Caravans)",
"placeholder": "10, 20, 50..."
}
7 changes: 7 additions & 0 deletions data/fields/capacity/persons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "capacity:persons",
"type": "number",
"minValue": 0,
"label": "Capacity (Persons)",
"placeholder": "50, 100, 200..."
}
11 changes: 11 additions & 0 deletions data/fields/capacity/tents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"key": "capacity:tents",
"type": "number",
"minValue": 0,
"label": "Capacity (Tents)",
"placeholder": "10, 20, 50...",
"prerequisiteTag": {
"key": "tents",
"valueNot": "no"
}
}
4 changes: 3 additions & 1 deletion data/presets/tourism/camp_site.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"operator",
"address",
"access_simple",
"capacity",
"capacity/caravans",
"capacity/persons",
"capacity/tents",
"fee",
"payment_multi_fee",
"charge_fee"
Expand Down
2 changes: 1 addition & 1 deletion data/presets/tourism/caravan_site.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"fields": [
"name",
"address",
"capacity",
"capacity/caravans",
"sanitary_dump_station",
"power_supply",
"internet_access",
Expand Down