Change source field to semiCombo, let users pick common source types

This commit is contained in:
Bryan Housel
2017-08-15 15:15:39 -04:00
parent c56dc5afc3
commit e9909717c7
5 changed files with 23 additions and 12 deletions
+1 -3
View File
@@ -1226,9 +1226,7 @@ en:
label: People Served
source:
# source=*
label: Source
# source field placeholder
placeholder: 'survey, local knowledge, aerial imagery'
label: Sources
sport:
# sport=*
label: Sports
+9 -3
View File
@@ -1635,11 +1635,17 @@
},
"source": {
"key": "source",
"type": "text",
"type": "semiCombo",
"icon": "source",
"universal": true,
"label": "Source",
"placeholder": "survey, local knowledge, aerial imagery"
"label": "Sources",
"options": [
"survey",
"local knowledge",
"gps",
"aerial imagery",
"streetlevel imagery"
]
},
"sport_ice": {
"key": "sport",
+9 -3
View File
@@ -1,8 +1,14 @@
{
"key": "source",
"type": "text",
"type": "semiCombo",
"icon": "source",
"universal": true,
"label": "Source",
"placeholder": "survey, local knowledge, aerial imagery"
"label": "Sources",
"options": [
"survey",
"local knowledge",
"gps",
"aerial imagery",
"streetlevel imagery"
]
}
+1 -2
View File
@@ -2100,8 +2100,7 @@
"label": "Type"
},
"source": {
"label": "Source",
"placeholder": "survey, local knowledge, aerial imagery"
"label": "Sources"
},
"sport_ice": {
"label": "Sports"
+3 -1
View File
@@ -103,7 +103,9 @@ export function uiFormFields(context) {
var field = d.field;
field.show = true;
render(selection);
field.focus();
if (field.type !== 'semiCombo' && field.type !== 'multiCombo') {
field.focus();
}
})
);
}