]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 686333: Bugzilla login field should be <input type=email>
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 16 Jan 2014 18:16:24 +0000 (19:16 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 16 Jan 2014 18:16:24 +0000 (19:16 +0100)
r/a=justdave

template/en/default/account/auth/login.html.tmpl
template/en/default/account/create.html.tmpl
template/en/default/account/prefs/account.html.tmpl

index 266d77842274a4176d8ebaabc281e751a54bdbe5..2d6a71f2d0b12e63321a970acf6a5017cce01456 100644 (file)
@@ -39,7 +39,8 @@
         </label>
       </th>
       <td>
-        <input size="35" id="Bugzilla_login" name="Bugzilla_login">
+        <input size="35" id="Bugzilla_login" name="Bugzilla_login"
+               [%- ' type="email"' UNLESS Param('emailsuffix') %]>
         [% Param('emailsuffix') FILTER html %]
       </td>
     </tr>
index 15896ef55fd2ab91600601013977db94d0ed2cef..21d9251b5f2c58120e0e6d804bcced2790e58156 100644 (file)
@@ -75,7 +75,9 @@
       Email address:
     [% END %]
   </span>
-  <input size="35" id="login" name="login"> [% Param('emailsuffix') FILTER html %]
+  <input size="35" id="login" name="login"
+         [%- ' type="email"' UNLESS Param('emailsuffix') %]>
+  [% Param('emailsuffix') FILTER html %]
   <input type="hidden" id="token" name="token" value="[% issue_hash_token(['create_account']) FILTER html %]">
   <input type="submit" id="send" value="Send">
 </form>
index b6c1ce1f8957a7bb12512b7757c515c1e3fd4715..af1df315eab40b5bdfdd342d591b0232c4949112 100644 (file)
       <td>
         <input type="password" name="new_password1">
       </td>
-    </tr>              
+    </tr>
 
     <tr>
       <th>Confirm new password:</th>
       <td>
         <input type="password" name="new_password2">
       </td>
-    </tr>              
+    </tr>
   [% END %]
 
   <tr>
       [% END %]
     [% ELSE %]
       <tr>
-        <th>New email address:</th>
+        <th>
+          [% IF Param('emailsuffix') %]
+            New login:
+          [% ELSE %]
+            New email address:
+          [% END %]
+        </th>
         <td>
-          <input size="35" name="new_login_name">
+          <input size="35" id="new_login_name" name="new_login_name"
+                 [%- ' type="email"' UNLESS Param('emailsuffix') %]>
         </td>
       </tr>
     [% END %]