Skip to content

Commit

Permalink
use "manyCombo" field for "gender" field, restrict hairdressers to fe…
Browse files Browse the repository at this point in the history
…male/male, closes #894

also partially addresses #895 and openstreetmap/iD#7427: for that iD should actually also show the "no" values allow explicitly marking the absense of certain options
  • Loading branch information
tyrasd committed May 2, 2023
1 parent 43e30d2 commit 2124436
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/fields/gender.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "radio",
"type": "manyCombo",
"keys": [
"male",
"female",
Expand Down
13 changes: 13 additions & 0 deletions data/fields/gender_simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "manyCombo",
"keys": [
"female",
"male"
],
"label": "{gender}",
"stringsCrossReference": "{gender}",
"options": [
"female",
"male"
]
}
2 changes: 1 addition & 1 deletion data/presets/shop/hairdresser.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"opening_hours",
"payment_multi",
"phone",
"gender"
"gender_simple"
],
"tags": {
"shop": "hairdresser"
Expand Down
2 changes: 2 additions & 0 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,8 @@ en:
placeholder: Unknown
# 'terms: access,female,male,unisex'
terms: '[translate with synonyms or related terms for ''Gender'', separated by commas]'
gender_simple:
# female=*, male=*
generator/method:
# generator:method=*
label: Method
Expand Down

0 comments on commit 2124436

Please sign in to comment.