diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 18:50:13 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 18:50:13 +0200 |
commit | 3891b63a1eb52076337885487f251a10580a4a85 (patch) | |
tree | db1463894b756a6bb5114644feeec704ec886eb5 /template/en/default/admin/users/userdata.html.tmpl | |
parent | c44470a368465adfe329fcfc32492829a21878da (diff) | |
download | bugzilla-3891b63a1eb52076337885487f251a10580a4a85.tar.gz bugzilla-3891b63a1eb52076337885487f251a10580a4a85.tar.xz |
Bug 218917 - Allow the login name to be different from the email address
Original patch by Gervase Markham
r=gerv a=dkl
Diffstat (limited to 'template/en/default/admin/users/userdata.html.tmpl')
-rw-r--r-- | template/en/default/admin/users/userdata.html.tmpl | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index c08cd0018..8f925e69a 100644 --- a/template/en/default/admin/users/userdata.html.tmpl +++ b/template/en/default/admin/users/userdata.html.tmpl @@ -17,13 +17,31 @@ var disable_mail_manually_set = [% (otheruser.email_disabled ? 1 : 0) FILTER js %]; </script> +[% IF NOT Param('use_email_as_login') %] + <tr> + <th><label for="login">Login:</label></th> + <td> + [% IF editusers %] + <input size="64" maxlength="255" id="login" name="login" + value="[% otheruser.login FILTER html %]" + [%- " autofocus" UNLESS editform %] required> + [% ELSE %] + [% otheruser.login FILTER html %] + [% END %] + </td> + </tr> +[% END %] <tr> - <th><label for="login">Login name:</label></th> + <th> + <label for="email"> + Email address [% ' (login)' IF Param('use_email_as_login') %]: + </label> + </th> <td> [% IF editusers %] - <input size="64" maxlength="255" id="login" name="login" - value="[% otheruser.login FILTER html %]" - [%- " autofocus" UNLESS editform %] required> + <input size="64" maxlength="255" id="email" name="email" + value="[% otheruser.email FILTER html %]" + [%- " autofocus" IF Param('use_email_as_login') AND NOT editform %] required> [% IF editform %] [% IF !otheruser.in_group('bz_sudo_protect') %] <br> @@ -32,7 +50,7 @@ [% END %] [% END %] [% ELSE %] - [% otheruser.login FILTER html %] + [% otheruser.email FILTER html %] [% END %] </td> </tr> |