mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Support email fields
This commit is contained in:
parent
d77ca8aa3a
commit
96ecd2640a
@ -306,7 +306,7 @@ function constructInput(name, parameters, options={}) {
|
|||||||
func = constructTextInput;
|
func = constructTextInput;
|
||||||
break;
|
break;
|
||||||
case 'email':
|
case 'email':
|
||||||
// TODO - email input
|
func = constructTextInput;
|
||||||
break;
|
break;
|
||||||
case 'integer':
|
case 'integer':
|
||||||
func = constructNumberInput;
|
func = constructNumberInput;
|
||||||
@ -413,6 +413,10 @@ function constructTextInput(name, parameters, options={}) {
|
|||||||
classes = 'urlinput form-control';
|
classes = 'urlinput form-control';
|
||||||
type = 'url';
|
type = 'url';
|
||||||
break;
|
break;
|
||||||
|
case 'email':
|
||||||
|
classes = 'emailinput form-control';
|
||||||
|
type = 'email';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return constructInputOptions(
|
return constructInputOptions(
|
||||||
|
Loading…
Reference in New Issue
Block a user