Skip to content

Commit

Permalink
Add Image field (close #7531)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed May 5, 2020
1 parent 4ab16a4 commit 8a9f4c3
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,13 @@ en:
icao:
# icao=*
label: ICAO Airport Code
image:
# image=*
label: Image
# image field placeholder
placeholder: 'https://example.com/photo.jpg'
# 'terms: icon,image uri,photo,picture'
terms: '[translate with synonyms or related terms for ''Image'', separated by commas]'
incline:
# incline=*
label: Incline
Expand Down
1 change: 1 addition & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
"hot_water": {"key": "hot_water", "type": "check", "label": "Hot Water"},
"iata": {"key": "iata", "type": "text", "label": "IATA Airport Code"},
"icao": {"key": "icao", "type": "text", "label": "ICAO Airport Code"},
"image": {"key": "image", "type": "url", "label": "Image", "placeholder": "https://example.com/photo.jpg", "universal": true, "terms": ["icon", "image uri", "photo", "picture"]},
"incline_steps": {"key": "incline", "type": "combo", "label": "Incline", "strings": {"options": {"up": "Up", "down": "Down"}}},
"incline": {"key": "incline", "type": "combo", "label": "Incline"},
"indoor_type": {"key": "indoor", "type": "typeCombo", "label": "Type"},
Expand Down
13 changes: 13 additions & 0 deletions data/presets/fields/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"key": "image",
"type": "url",
"label": "Image",
"placeholder": "https://example.com/photo.jpg",
"universal": true,
"terms": [
"icon",
"image uri",
"photo",
"picture"
]
}
1 change: 1 addition & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,7 @@
{"key": "hot_water", "description": "🄵 Hot Water"},
{"key": "iata", "description": "🄵 IATA Airport Code"},
{"key": "icao", "description": "🄵 ICAO Airport Code"},
{"key": "image", "description": "🄵 Image"},
{"key": "incline", "value": "up", "description": "🄵 Incline"},
{"key": "incline", "value": "down", "description": "🄵 Incline"},
{"key": "incline", "description": "🄵 Incline"},
Expand Down
5 changes: 5 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3570,6 +3570,11 @@
"icao": {
"label": "ICAO Airport Code"
},
"image": {
"label": "Image",
"terms": "icon,image uri,photo,picture",
"placeholder": "https://example.com/photo.jpg"
},
"incline_steps": {
"label": "Incline",
"options": {
Expand Down

0 comments on commit 8a9f4c3

Please sign in to comment.