diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-22 11:36:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-22 11:36:49 +0000 |
commit | aee1158c6207a52fb459ad4b7dee745d15dcf08e (patch) | |
tree | d61b204bf8c91f9340ce29da4d1729a16f89371a /templates | |
parent | 987858486d2f05a8ccab6d025d0125cf406fd1ff (diff) | |
parent | 767ec841d0e71e6bf0af8e9542bcc09ec2b64440 (diff) |
Merge branch 'logged-in-user-report-alert-signup'
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/display_tools.html | 8 |
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"> |