Skip to content

Commit

Permalink
Show "Unknown" for opening hours placeholder
Browse files Browse the repository at this point in the history
(closes #6207)
  • Loading branch information
bhousel committed Apr 19, 2019
1 parent b566ef0 commit 860454d
Show file tree
Hide file tree
Showing 5 changed files with 987 additions and 1,191 deletions.
2 changes: 2 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,8 @@ en:
opening_hours:
# opening_hours=*
label: Hours
# opening_hours field placeholder
placeholder: Unknown
operator:
# operator=*
label: Operator
Expand Down
2 changes: 1 addition & 1 deletion data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"oneway": {"key": "oneway", "type": "onewayCheck", "label": "One Way", "strings": {"options": {"undefined": "Assumed to be No", "yes": "Yes", "no": "No", "reversible": "Reversible", "alternating": "Alternating"}}},
"oneway/bicycle": {"key": "oneway:bicycle", "type": "check", "label": "One Way (Bicycles)", "prerequisiteTag": {"key": "oneway"}},
"opening_date": {"key": "opening_date", "type": "text", "label": "Expected Opening Date"},
"opening_hours": {"key": "opening_hours", "type": "combo", "label": "Hours", "snake_case": false},
"opening_hours": {"key": "opening_hours", "type": "combo", "label": "Hours", "placeholder": "Unknown", "snake_case": false},
"operator": {"key": "operator", "type": "text", "label": "Operator"},
"outdoor_seating": {"key": "outdoor_seating", "type": "check", "label": "Outdoor Seating"},
"par": {"key": "par", "type": "number", "minValue": 1, "label": "Par", "placeholder": "3, 4, 5..."},
Expand Down
1 change: 1 addition & 0 deletions data/presets/fields/opening_hours.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"key": "opening_hours",
"type": "combo",
"label": "Hours",
"placeholder": "Unknown",
"snake_case": false
}
Loading

0 comments on commit 860454d

Please sign in to comment.