changeset 1fdcafaba6fc in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset&node=1fdcafaba6fc
description:
        Use proper input type for user form
diffstat:

 html/user.item.html     |  4 ++--
 html/user.register.html |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r a5e58086843d -r 1fdcafaba6fc html/user.item.html
--- a/html/user.item.html       Sun May 16 22:19:25 2021 +0200
+++ b/html/user.item.html       Sun May 16 22:24:37 2021 +0200
@@ -76,7 +76,7 @@
         <tr>
           <th>{% trans %}Phone{% endtrans %}</th>
           <td>
-            <input class="form-control"  type='text' name='phone' value='{{ 
context.phone.plain()|u }}'>
+            <input class="form-control"  type='tel' name='phone' value='{{ 
context.phone.plain()|u }}'>
           </td>
         </tr>
         <tr>
@@ -144,7 +144,7 @@
         <tr>
           <th>{% trans %}Email{% endtrans %}</th>
           <td>
-            <input class="form-control"  type='text' name='address' value='{{ 
context.address.plain()|u }}'>
+            <input class="form-control"  type='email' name='address' value='{{ 
context.address.plain()|u }}'>
           </td>
         </tr>
         <tr>
diff -r a5e58086843d -r 1fdcafaba6fc html/user.register.html
--- a/html/user.register.html   Sun May 16 22:19:25 2021 +0200
+++ b/html/user.register.html   Sun May 16 22:24:37 2021 +0200
@@ -52,7 +52,7 @@
       <tr>
         <th>{% trans %}Phone{% endtrans %}</th>
         <td>
-          <input class="form-control" type='text' name='phone'>
+          <input class="form-control" type='tel' name='phone'>
         </td>
       </tr>
       <tr>
@@ -81,7 +81,7 @@
       <tr>
         <th>{% trans %}Email{% endtrans %}</th>
         <td>
-          <input class="form-control" type='text' name='address' required>
+          <input class="form-control" type='email' name='address' required>
         </td>
       </tr>
       <tr>

Reply via email to