Change maxstay to combo with options, no placeholder (closes #2866)

This commit is contained in:
Bryan Housel
2015-12-09 13:46:53 -08:00
parent 00b426e951
commit 20a80830fe
4 changed files with 31 additions and 8 deletions

View File

@@ -566,8 +566,6 @@ en:
maxstay:
# 'maxstay=*'
label: Max Stay
# maxstay field placeholder
placeholder: '30 minutes, 1 hour, 2 hours...'
mtb/scale:
# 'mtb:scale=*'
label: Mountain Biking Difficulty

View File

@@ -762,8 +762,21 @@
"maxstay": {
"key": "maxstay",
"type": "combo",
"placeholder": "30 minutes, 1 hour, 2 hours...",
"label": "Max Stay"
"label": "Max Stay",
"options": [
"15 min",
"30 min",
"45 min",
"1 hr",
"1.5 hr",
"2 hr",
"2.5 hr",
"3 hr",
"4 hr",
"1 day",
"2 day"
],
"snake_case": false
},
"mtb/scale": {
"key": "mtb:scale",

View File

@@ -1,6 +1,19 @@
{
"key": "maxstay",
"type": "combo",
"placeholder": "30 minutes, 1 hour, 2 hours...",
"label": "Max Stay"
"label": "Max Stay",
"options": [
"15 min",
"30 min",
"45 min",
"1 hr",
"1.5 hr",
"2 hr",
"2.5 hr",
"3 hr",
"4 hr",
"1 day",
"2 day"
],
"snake_case": false
}

View File

@@ -1072,8 +1072,7 @@
"placeholder": "40, 50, 60..."
},
"maxstay": {
"label": "Max Stay",
"placeholder": "30 minutes, 1 hour, 2 hours..."
"label": "Max Stay"
},
"mtb/scale": {
"label": "Mountain Biking Difficulty",