Remove inline forms

No good way to give them IDs; better to be consistent.
This commit is contained in:
John Firebaugh
2013-03-12 17:19:11 -07:00
parent fb57c64caa
commit 8509d9f620
49 changed files with 184 additions and 100 deletions

View File

@@ -1 +1 @@
{"access":{"key":"access","type":"combo"},"address":{"type":"address","keys":["addr:housename","addr:housenumber","addr:street","addr:city"],"universal":true},"atm":{"key":"atm","type":"check"},"building":{"key":"building","type":"combo"},"building_area":{"key":"building","type":"check","default":{"area":"yes"}},"building_yes":{"key":"building","type":"combo","default":{"area":"yes"}},"capacity":{"key":"capacity","type":"text"},"cuisine":{"key":"cuisine","type":"combo","indexed":true},"denomination":{"key":"denomination","type":"combo"},"elevation":{"key":"ele","type":"number","universal":true},"emergency":{"key":"emergency","type":"check"},"fax":{"key":"fax","type":"tel"},"fee":{"key":"fee","type":"check"},"internet_access":{"key":"internet_access","type":"combo","options":["yes","no","wlan","wired","terminal"]},"layer":{"key":"layer","type":"combo"},"levels":{"key":"building:levels","type":"number"},"maxspeed":{"key":"maxspeed","type":"combo"},"network":{"key":"network","type":"text"},"oneway":{"key":"oneway","type":"check"},"opening_hours":{"key":"opening_hours","type":"text"},"operator":{"key":"operator","type":"text"},"phone":{"key":"phone","type":"tel"},"religion":{"key":"religion","type":"combo","options":["christian","muslim","buddhist","jewish","hindu","shinto","taoist"]},"roadtype":{"title":" ","type":"radio","options":["bridge","tunnel","embankment","cutting"]},"shelter":{"key":"shelter","type":"check"},"source":{"key":"source","type":"text","universal":true},"surface":{"key":"surface","type":"combo"},"telephone":{"key":"phone","type":"tel","universal":true},"website":{"key":"website","type":"url","universal":true},"wikipedia":{"key":"wikipedia","type":"text","universal":true}}
{"access":{"key":"access","type":"combo"},"address":{"type":"address","keys":["addr:housename","addr:housenumber","addr:street","addr:city"],"universal":true},"aeroway":{"key":"aeroway","type":"combo"},"amenity":{"key":"amenity","type":"combo"},"atm":{"key":"atm","type":"check"},"building":{"key":"building","type":"combo"},"building_area":{"key":"building","type":"check","default":{"area":"yes"}},"building_yes":{"key":"building","type":"combo","default":{"area":"yes"}},"capacity":{"key":"capacity","type":"text"},"collection_times":{"key":"collection_times","type":"text"},"construction":{"key":"construction","type":"combo"},"crossing":{"key":"crossing","type":"combo"},"cuisine":{"key":"cuisine","type":"combo","indexed":true},"denomination":{"key":"denomination","type":"combo"},"denotation":{"key":"denotation","type":"combo"},"elevation":{"key":"ele","type":"number","universal":true},"emergency":{"key":"emergency","type":"check"},"fax":{"key":"fax","type":"tel"},"fee":{"key":"fee","type":"check"},"highway":{"key":"highway","type":"combo"},"internet_access":{"key":"internet_access","type":"combo","options":["yes","no","wlan","wired","terminal"]},"landuse":{"key":"landuse","type":"combo"},"layer":{"key":"layer","type":"combo"},"leisure":{"key":"leisure","type":"combo"},"levels":{"key":"building:levels","type":"number"},"man_made":{"key":"man_made","type":"combo"},"maxspeed":{"key":"maxspeed","type":"combo"},"natural":{"key":"natural","type":"combo"},"network":{"key":"network","type":"text"},"office":{"key":"office","type":"combo"},"oneway":{"key":"oneway","type":"check"},"opening_hours":{"key":"opening_hours","type":"text"},"operator":{"key":"operator","type":"text"},"phone":{"key":"phone","type":"tel"},"place":{"key":"place","type":"combo"},"railway":{"key":"railway","type":"combo"},"religion":{"key":"religion","type":"combo","options":["christian","muslim","buddhist","jewish","hindu","shinto","taoist"]},"roadtype":{"title":" ","type":"radio","options":["bridge","tunnel","embankment","cutting"]},"service":{"key":"service","type":"combo","options":["parking_aisle","driveway","alley","drive-through","emergency_access"]},"shelter":{"key":"shelter","type":"check"},"shop":{"key":"shop","type":"combo"},"source":{"key":"source","type":"text","universal":true},"sport":{"key":"sport","type":"combo"},"surface":{"key":"surface","type":"combo"},"telephone":{"key":"phone","type":"tel","universal":true},"tourism":{"key":"tourism","type":"combo"},"water":{"key":"water","type":"combo"},"waterway":{"key":"waterway","type":"combo"},"website":{"key":"website","type":"url","universal":true},"wetland":{"key":"wetland","type":"combo"},"wikipedia":{"key":"wikipedia","type":"text","universal":true},"wood":{"key":"wood","type":"combo"}}

View File

@@ -0,0 +1,4 @@
{
"key": "aeroway",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "amenity",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "collection_times",
"type": "text"
}

View File

@@ -0,0 +1,4 @@
{
"key": "construction",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "crossing",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "denotation",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "highway",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "landuse",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "leisure",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "man_made",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "natural",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "office",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "place",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "railway",
"type": "combo"
}

View File

@@ -0,0 +1,5 @@
{
"key": "service",
"type": "combo",
"options": ["parking_aisle", "driveway", "alley", "drive-through", "emergency_access"]
}

View File

@@ -0,0 +1,4 @@
{
"key": "shop",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "sport",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "tourism",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "water",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "waterway",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "wetland",
"type": "combo"
}

View File

@@ -0,0 +1,4 @@
{
"key": "wood",
"type": "combo"
}

File diff suppressed because one or more lines are too long

View File

@@ -12,9 +12,6 @@
}
},
"form": [
{
"key": "aeroway",
"type": "combo"
}
"aeroway"
]
}

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "amenity",
"type": "combo"
}
"amenity"
]
}

View File

@@ -19,9 +19,6 @@
"icon": "post",
"form": [
"operator",
{
"key": "collection_times",
"type": "text"
}
"collection_times"
]
}

View File

@@ -12,9 +12,6 @@
}
},
"form": [
{
"key": "highway",
"type": "combo"
}
"highway"
]
}

View File

@@ -13,9 +13,6 @@
]
},
"form": [
{
"key": "crossing",
"type": "combo"
}
"crossing"
]
}

View File

@@ -11,11 +11,7 @@
},
"icon": "highway-service",
"form": [
{
"key": "service",
"type": "combo",
"options": ["parking_aisle", "driveway", "alley", "drive-through", "emergency_access"]
},
"service",
"oneway",
"roadtype",
"access",

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "landuse",
"type": "combo"
}
"landuse"
]
}

View File

@@ -12,10 +12,7 @@
]
},
"form": [
{
"key": "construction",
"type": "combo"
},
"construction",
"operator"
]
}

View File

@@ -11,10 +11,7 @@
"terms": []
},
"form": [
{
"key": "wood",
"type": "combo"
}
"wood"
],
"icon": "park2"
}

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "leisure",
"type": "combo"
}
"leisure"
]
}

View File

@@ -12,10 +12,7 @@
},
"icon": "pitch",
"form": [
{
"key": "sport",
"type": "combo"
},
"sport",
"surface"
]
}

View File

@@ -12,9 +12,6 @@
}
},
"form": [
{
"key": "man_made",
"type": "combo"
}
"man_made"
]
}

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "natural",
"type": "combo"
}
"natural"
]
}

View File

@@ -12,10 +12,7 @@
}
},
"form": [
{
"key": "denotation",
"type": "combo"
}
"denotation"
],
"icon": "park"
}

View File

@@ -10,9 +10,6 @@
"terms": []
},
"form": [
{
"key": "water",
"type": "combo"
}
"water"
]
}

View File

@@ -11,9 +11,6 @@
"terms": []
},
"form": [
{
"key": "wetland",
"type": "combo"
}
"wetland"
]
}

View File

@@ -11,10 +11,7 @@
"terms": []
},
"form": [
{
"key": "wood",
"type": "combo"
}
"wood"
],
"icon": "park2"
}

View File

@@ -12,10 +12,7 @@
},
"icon": "commercial",
"form": [
{
"key": "office",
"type": "combo"
},
"office",
"address",
"opening_hours"
]

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "place",
"type": "combo"
}
"place"
]
}

View File

@@ -12,9 +12,6 @@
}
},
"form": [
{
"key": "railway",
"type": "combo"
}
"railway"
]
}

View File

@@ -12,10 +12,7 @@
},
"icon": "shop",
"form": [
{
"key": "shop",
"type": "combo"
},
"shop",
"address",
"opening_hours"
]

View File

@@ -10,9 +10,6 @@
}
},
"form": [
{
"key": "tourism",
"type": "combo"
}
"tourism"
]
}

View File

@@ -12,9 +12,6 @@
}
},
"form": [
{
"key": "waterway",
"type": "combo"
}
"waterway"
]
}

View File

@@ -7,11 +7,7 @@ iD.presets.Preset = function(preset, forms) {
preset.additional = preset.additional ? preset.additional.map(getForms) : [];
function getForms(f) {
if (typeof f === 'string') {
return forms[f];
} else {
return iD.presets.Form(f, f.key);
}
return forms[f];
}
preset.matchGeometry = function(entity, resolver) {

View File

@@ -257,6 +257,12 @@ locale.en = {
"city": "City"
}
},
"aeroway": {
"label": "Type"
},
"amenity": {
"label": "Type"
},
"atm": {
"label": "ATM"
},
@@ -272,12 +278,24 @@ locale.en = {
"capacity": {
"label": "Capacity"
},
"collection_times": {
"label": "Collection Times"
},
"construction": {
"label": "Type"
},
"crossing": {
"label": "Type"
},
"cuisine": {
"label": "Cuisine"
},
"denomination": {
"label": "Denomination"
},
"denotation": {
"label": "Denotation"
},
"elevation": {
"label": "Elevation"
},
@@ -290,6 +308,9 @@ locale.en = {
"fee": {
"label": "Fee"
},
"highway": {
"label": "Type"
},
"internet_access": {
"label": "Internet Access",
"options": {
@@ -300,18 +321,33 @@ locale.en = {
"terminal": "Terminal"
}
},
"landuse": {
"label": "Type"
},
"layer": {
"label": "Layer"
},
"leisure": {
"label": "Type"
},
"levels": {
"label": "Levels"
},
"man_made": {
"label": "Type"
},
"maxspeed": {
"label": "Speed Limit"
},
"natural": {
"label": "Natural"
},
"network": {
"label": "Network"
},
"office": {
"label": "Type"
},
"oneway": {
"label": "One Way"
},
@@ -324,6 +360,12 @@ locale.en = {
"phone": {
"label": "Phone"
},
"place": {
"label": "Type"
},
"railway": {
"label": "Type"
},
"religion": {
"label": "Religion",
"options": {
@@ -345,14 +387,41 @@ locale.en = {
"cutting": "Cutting"
}
},
"service": {
"label": "Type"
},
"shelter": {
"label": "Shelter"
},
"shop": {
"label": "Type"
},
"source": {
"label": "Source"
},
"sport": {
"label": "Sport"
},
"surface": {
"label": "Surface"
},
"tourism": {
"label": "Type"
},
"wikipedia": {
"label": "Wikipedia"
},
"water": {
"label": "Type"
},
"waterway": {
"label": "Type"
},
"wetland": {
"label": "Type"
},
"wood": {
"label": "Type"
}
}
}