Skip to content

Commit

Permalink
Merge pull request #3735 from M1dgard/fields-email-fax
Browse files Browse the repository at this point in the history
Add universal email field, make fax universal
  • Loading branch information
bhousel authored Jan 10, 2017
2 parents f96a595 + 8226745 commit cc3b2ea
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,11 @@ en:
elevation:
# ele=*
label: Elevation
email:
# email=*
label: Email
# email field placeholder
placeholder: example@example.com
emergency:
# emergency=*
label: Emergency
Expand Down
8 changes: 8 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,13 @@
"universal": true,
"label": "Elevation"
},
"email": {
"key": "email",
"type": "email",
"placeholder": "example@example.com",
"universal": true,
"label": "Email"
},
"emergency": {
"key": "emergency",
"type": "check",
Expand All @@ -600,6 +607,7 @@
"key": "fax",
"type": "tel",
"label": "Fax",
"universal": true,
"placeholder": "+31 42 123 4567"
},
"fee": {
Expand Down
7 changes: 7 additions & 0 deletions data/presets/fields/email.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "email",
"type": "email",
"placeholder": "example@example.com",
"universal": true,
"label": "Email"
}
3 changes: 2 additions & 1 deletion data/presets/fields/fax.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"key": "fax",
"type": "tel",
"label": "Fax",
"universal": true,
"placeholder":"+31 42 123 4567"
}
}
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,10 @@
"elevation": {
"label": "Elevation"
},
"email": {
"label": "Email",
"placeholder": "example@example.com"
},
"emergency": {
"label": "Emergency"
},
Expand Down

0 comments on commit cc3b2ea

Please sign in to comment.