Fix a few bugs with the new buurtnatuur preset: move name after freeform description, fix access (picking an option overwrites access:description and vice-versa)

This commit is contained in:
Pieter Vander Vennet 2020-09-21 22:22:58 +02:00
parent f7e5ce933d
commit 95ace2cb97

View file

@ -340,7 +340,8 @@
"nl": "Is dit gebied toegankelijk?" "nl": "Is dit gebied toegankelijk?"
}, },
"freeform": { "freeform": {
"key": "access:description" "key": "access:description",
"addExtraTags": ["access="]
}, },
"mappings": [ "mappings": [
{ {
@ -359,6 +360,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=yes", "access=yes",
"fee=" "fee="
] ]
@ -370,6 +372,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=no", "access=no",
"fee=" "fee="
] ]
@ -381,6 +384,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=private", "access=private",
"fee=" "fee="
] ]
@ -392,6 +396,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=permissive", "access=permissive",
"fee=" "fee="
] ]
@ -403,6 +408,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=guided", "access=guided",
"fee=" "fee="
] ]
@ -414,6 +420,7 @@
{ {
"if": { "if": {
"and": [ "and": [
"access:description=",
"access=yes", "access=yes",
"fee=yes" "fee=yes"
] ]
@ -485,6 +492,25 @@
] ]
} }
}, },
{
"#": "Non-editable description {description}",
"render": {
"nl": "Extra info: <i>{description}</i>"
},
"freeform": {
"key": "description"
}
},
{
"#": "Editable description {description:0}",
"question": "Is er extra info die je kwijt wil?<br/><span class='subtle'>De <i>naam</i> van het gebied wordt in de volgende vraag gesteld</span>",
"render": {
"nl": "Extra info via buurtnatuur.be: <i>{description:0}</i>"
},
"freeform": {
"key": "description:0"
}
},
{ {
"#": "Name:nl-tag", "#": "Name:nl-tag",
"render": { "render": {
@ -536,25 +562,6 @@
} }
} }
] ]
},
{
"#": "Non-editable description {description}",
"render": {
"nl": "Extra info: <i>{description}</i>"
},
"freeform": {
"key": "description"
}
},
{
"#": "Editable description {description:0}",
"question": "Is er extra info die je kwijt wil?",
"render": {
"nl": "Extra info via buurtnatuur.be: <i>{description:0}</i>"
},
"freeform": {
"key": "description:0"
}
} }
] ]
} }