aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-10-18 14:33:28 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-12-04 18:05:01 +0000
commitbfdae7620a932a5fe11ffdb94c586d8f648f2d51 (patch)
treefa557ede9d67be747b092b5ac52a8f55dd5b188d /templates
parent97c3f1e56624bc1b728b237455203e8f9898eb48 (diff)
Do not show second email form if SMS_AUTHENTICATION off.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/new/form_user_loggedout_by_email.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/web/base/report/new/form_user_loggedout_by_email.html b/templates/web/base/report/new/form_user_loggedout_by_email.html
index 5171abd59..a67e6e61e 100644
--- a/templates/web/base/report/new/form_user_loggedout_by_email.html
+++ b/templates/web/base/report/new/form_user_loggedout_by_email.html
@@ -19,10 +19,12 @@
<input class="form-control form-focus-hidden" type="text" value="[% phone | html %]" name="phone" id="form_phone">
</div>
[% END %]
+ [% IF c.config.SMS_AUTHENTICATION %]
<div id="js-hide-if-username-email">
<label class="form-focus-hidden" for="form_email">[% loc('Email address (optional)') %]</label>
<input class="form-control form-focus-hidden" type="text" value="[% email | html %]" name="email" id="form_email">
</div>
+ [% END %]
<label class="form-focus-hidden" for="password_register">[% loc('Password (optional)') %]</label>
[% IF field_errors.password_register %]