From 96ecd2640abb04eb13b175518bad217a84bd8ae0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 23 Jun 2021 23:27:02 +1000 Subject: [PATCH] Support email fields --- InvenTree/templates/js/forms.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/forms.js b/InvenTree/templates/js/forms.js index c9242fb925..6ca4f0560c 100644 --- a/InvenTree/templates/js/forms.js +++ b/InvenTree/templates/js/forms.js @@ -306,7 +306,7 @@ function constructInput(name, parameters, options={}) { func = constructTextInput; break; case 'email': - // TODO - email input + func = constructTextInput; break; case 'integer': func = constructNumberInput; @@ -413,6 +413,10 @@ function constructTextInput(name, parameters, options={}) { classes = 'urlinput form-control'; type = 'url'; break; + case 'email': + classes = 'emailinput form-control'; + type = 'email'; + break; } return constructInputOptions(