summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-01-16 19:16:24 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-01-16 19:16:24 +0100
commitec84eeb8a8072a71cb3938747a88cfc36da42368 (patch)
tree463984b8a3cb7bd061421eeedfd720b7e8f30934 /template
parent77a59a459c66ac6525b0b18be481a137ef6e662e (diff)
downloadbugzilla-ec84eeb8a8072a71cb3938747a88cfc36da42368.tar.gz
bugzilla-ec84eeb8a8072a71cb3938747a88cfc36da42368.tar.xz
Bug 686333: Bugzilla login field should be <input type=email>
r/a=justdave
Diffstat (limited to 'template')
-rw-r--r--template/en/default/account/auth/login.html.tmpl3
-rw-r--r--template/en/default/account/create.html.tmpl4
-rw-r--r--template/en/default/account/prefs/account.html.tmpl15
3 files changed, 16 insertions, 6 deletions
diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl
index 266d77842..2d6a71f2d 100644
--- a/template/en/default/account/auth/login.html.tmpl
+++ b/template/en/default/account/auth/login.html.tmpl
@@ -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>
diff --git a/template/en/default/account/create.html.tmpl b/template/en/default/account/create.html.tmpl
index 15896ef55..21d9251b5 100644
--- a/template/en/default/account/create.html.tmpl
+++ b/template/en/default/account/create.html.tmpl
@@ -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>
diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl
index b6c1ce1f8..af1df315e 100644
--- a/template/en/default/account/prefs/account.html.tmpl
+++ b/template/en/default/account/prefs/account.html.tmpl
@@ -38,14 +38,14 @@
<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>
@@ -78,9 +78,16 @@
[% 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 %]