aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-20 17:15:53 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-21 10:07:00 +0000
commit767ec841d0e71e6bf0af8e9542bcc09ec2b64440 (patch)
tree4d4f46bb5f9307cd891610cac9e9bf4b6cf02bac /templates
parent31e3491dbbcd41fec6911e38078464b2be0fb1ca (diff)
Don't ask for email on alert signup if logged in.
The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/display_tools.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html
index be788a50d..4ba8c8b2c 100644
--- a/templates/web/base/report/display_tools.html
+++ b/templates/web/base/report/display_tools.html
@@ -43,13 +43,15 @@
</a>
[% loc('Receive email when updates are left on this problem.' ) %]</p>
<fieldset>
+ [% IF c.user_exists %]
+ <input class="green-btn" type="submit" name="alert" value="[% loc('Subscribe') %]">
+ [% ELSE %]
<label for="alert_rznvy">[% loc('Your email') %]</label>
<div class="form-txt-submit-box">
- [% IF NOT c.user_exists %]
<input type="email" class="form-control" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30">
- [% END %]
- <input class="green-btn" type="submit" value="[% loc('Subscribe') %]">
+ <input class="green-btn" type="submit" name="alert" value="[% loc('Subscribe') %]">
</div>
+ [% END %]
<input type="hidden" name="token" value="[% csrf_token %]">
<input type="hidden" name="id" value="[% problem.id %]">
<input type="hidden" name="type" value="updates">