diff options
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> |