diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-29 14:17:51 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-29 14:17:51 +0100 |
commit | a7c371c58eee61d9738e3dea76b7481ba61e3536 (patch) | |
tree | 22a31bd36f8baa3f708d921fa0e881b44b12b92f | |
parent | 781078aeb52ad838c682ebb061ccc2a28d3e53b1 (diff) |
Don't show alert email box if signed in.
It will default to your logged in address, ignoring what is put in this
box. This should also fix an issue where the update email address field
is initially blank when you are logged in and using the "Provide update
as" functionality (due to both fields having the same name).
-rw-r--r-- | templates/web/base/report/display_tools.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html index 82f7d0ac3..f12e9dbc7 100644 --- a/templates/web/base/report/display_tools.html +++ b/templates/web/base/report/display_tools.html @@ -43,7 +43,9 @@ <fieldset> <label class="hidden n" for="alert_rznvy">[% loc('Your email') %]</label> <div class="form-txt-submit-box"> + [% IF NOT c.user_exists %] <input type="email" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30" placeholder="[% loc('Your email') %]"> + [% END %] <input class="green-btn" type="submit" value="[% loc('Subscribe') %]"> </div> <input type="hidden" name="token" value="[% csrf_token %]"> |