From a8ef3e105b01d4a7f765edbe53b7af53ed179020 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 27 Jul 2015 12:19:17 +0800 Subject: Bug 1186788 - disabling an account should always disable bugmail --- template/en/default/admin/users/edit.html.tmpl | 16 ++++++++++++++++ template/en/default/admin/users/userdata.html.tmpl | 20 +++++++++++--------- 2 files changed, 27 insertions(+), 9 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl index 8eced20f7..a5ab5cf03 100644 --- a/template/en/default/admin/users/edit.html.tmpl +++ b/template/en/default/admin/users/edit.html.tmpl @@ -26,9 +26,25 @@ [% title = BLOCK %]Edit user [% otheruser.identity FILTER html %][% END %] +[% js = BLOCK %] +$(function() { + $('#disabledtext') + .keyup(function() { + if ($(this).val().trim() !== '') { + $('#disable_mail').prop('checked', true).prop('disabled', true); + } + else { + $('#disable_mail').prop('disabled', false); + } + }) + .keyup(); +}); +[% END %] + [% PROCESS global/header.html.tmpl title = title message = message + javascript = js style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css'] doc_section = "useradmin.html#modifyusers" %] diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index f3f0e5aa9..16d720a4a 100644 --- a/template/en/default/admin/users/userdata.html.tmpl +++ b/template/en/default/admin/users/userdata.html.tmpl @@ -25,10 +25,10 @@ [% IF editusers %] + id="login" value="[% otheruser.login FILTER html %]"> [% IF editform %] [% IF !otheruser.in_group('bz_sudo_protect') %] -
+
Impersonate this user [% END %] @@ -57,7 +57,7 @@ [% IF editusers %] + id="name" value="[% otheruser.name FILTER html %]"> [% ELSE %] [% otheruser.name FILTER html %] [% END %] @@ -75,8 +75,8 @@ - [% IF editform %]
+ value="" autocomplete="off"> + [% IF editform %]
(Enter new password to change.) [% END %] @@ -85,10 +85,12 @@ - - (This affects [% terms.bug %]mail and whinemail, not password-reset or other - non-[% terms.bug %]-related emails) + + -- cgit v1.2.3-24-g4f1b