forked from MapComplete/MapComplete
Theme: tool_library: improve membership handling
This commit is contained in:
parent
6cd7828ed3
commit
62bc005534
1 changed files with 25 additions and 3 deletions
|
@ -52,6 +52,12 @@
|
|||
"then": {
|
||||
"en": "A <b>membership is required</b> to use this tool library"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "membership=optional",
|
||||
"then": {
|
||||
"en": "A <b>membership is possible</b> but not required to use this tool library"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -72,18 +78,30 @@
|
|||
"en": "A membership costs {charge:membership}"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"question": {
|
||||
"en": "Is a fee asked to borrow tools?"
|
||||
},
|
||||
"id": "fee",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"fee=no",
|
||||
"membership=required"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "Borrowing tools is free if one has a membership"
|
||||
},
|
||||
"hideInAnswer": "membership!=required"
|
||||
},
|
||||
{
|
||||
"if": "fee=no",
|
||||
"then": {
|
||||
"en": "Borrowing tools is free"
|
||||
}
|
||||
},
|
||||
"hideInAnswer": "membership=required"
|
||||
},
|
||||
{
|
||||
"if": "fee=yes",
|
||||
|
@ -144,7 +162,11 @@
|
|||
"charge:membership": {
|
||||
"inverted": true,
|
||||
"quantity": "duration",
|
||||
"denominations": ["years","months","weeks"]
|
||||
"denominations": [
|
||||
"years",
|
||||
"months",
|
||||
"weeks"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue