aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-14 09:22:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-14 09:22:43 +0000
commita494edfb9b8b971ef825782123d4422c73288b75 (patch)
treec079d022f384918eea3d70732e5069f1e760677e /templates
parentf661c0f41eb30b024c17888889b7d725ab412ddf (diff)
parent90ba1eec155c8b785b52a842fb8157aacf53d555 (diff)
Merge branch 'allow-anon-on-some-categories'
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/form/user.html14
-rw-r--r--templates/web/westminster/report/form/user_loggedout.html2
2 files changed, 14 insertions, 2 deletions
diff --git a/templates/web/base/report/form/user.html b/templates/web/base/report/form/user.html
index 25d252e58..1c941a302 100644
--- a/templates/web/base/report/form/user.html
+++ b/templates/web/base/report/form/user.html
@@ -26,10 +26,20 @@
[% END %]
<button type="button" class="btn btn--block hidden-nojs js-new-report-user-show">[% loc('Log in with email') %]</button>
[% END %]
-[% IF type == 'report' AND c.cobrand.allow_anonymous_reports == 'button' %]
+ <div class="js-show-if-anonymous
+ [%~ ' hidden-js' UNLESS type == 'report' AND c.cobrand.allow_anonymous_reports == 'button' %]">
<small id="or">[% loc('or') %]</small>
<button name="report_anonymously" value="yes" class="btn btn--block js-new-report-submit">[% loc('Report anonymously') %]</button>
<small>[% loc('No personal details will be stored, and you will not receive updates about this report.') %]</small>
-[% END %]
+ </div>
</div>
+
+[% IF (c.user_exists OR NOT c.cobrand.social_auth_enabled) AND type == 'report' AND c.cobrand.allow_anonymous_reports == 'button' %]
+<div class="form-section-preview form-section-preview--next hidden-js">
+ <button name="report_anonymously" value="yes" class="btn btn--block">[% loc('Report anonymously') %]</button>
+ <small>[% loc('No personal details will be stored, and you will not receive updates about this report.') %]</small>
+ <small id="or">[% loc('or') %]</small>
+</div>
+[% END %]
+
<!-- /report/form/user.html -->
diff --git a/templates/web/westminster/report/form/user_loggedout.html b/templates/web/westminster/report/form/user_loggedout.html
new file mode 100644
index 000000000..71a68f216
--- /dev/null
+++ b/templates/web/westminster/report/form/user_loggedout.html
@@ -0,0 +1,2 @@
+<!-- user_loggedout.html -->
+<!-- /user_loggedout.html -->