[widget] Addition of EmailInput
Simple input widget with type = 'email'
Closes #3741921
--- a/web/formwidgets.py Mon Apr 28 18:38:24 2014 +0200
+++ b/web/formwidgets.py Fri Apr 11 17:43:26 2014 +0200
@@ -34,6 +34,7 @@
.. autoclass:: cubicweb.web.formwidgets.HiddenInput
.. autoclass:: cubicweb.web.formwidgets.TextInput
+.. autoclass:: cubicweb.web.formwidgets.EmailInput
.. autoclass:: cubicweb.web.formwidgets.PasswordSingleInput
.. autoclass:: cubicweb.web.formwidgets.FileInput
.. autoclass:: cubicweb.web.formwidgets.ButtonInput
@@ -314,6 +315,11 @@
type = 'text'
+class EmailInput(Input):
+ """Simple <input type='email'>, will return a unicode string."""
+ type = 'email'
+
+
class PasswordSingleInput(Input):
"""Simple <input type='password'>, will return an utf-8 encoded string.