aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/default/js/validation_rules.html3
-rw-r--r--templates/web/zurich/report/new/fill_in_details_form.html5
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/web/default/js/validation_rules.html b/templates/web/default/js/validation_rules.html
index 409d0971f..f9b4f3e42 100644
--- a/templates/web/default/js/validation_rules.html
+++ b/templates/web/default/js/validation_rules.html
@@ -3,5 +3,8 @@
detail: { required: true },
email: { required: true },
update: { required: true },
+ [% IF c.cobrand.moniker == 'zurich' %]
+ phone: { required: true },
+ [% END %]
rznvy: { required: true }
};
diff --git a/templates/web/zurich/report/new/fill_in_details_form.html b/templates/web/zurich/report/new/fill_in_details_form.html
index 1cecf036d..076536601 100644
--- a/templates/web/zurich/report/new/fill_in_details_form.html
+++ b/templates/web/zurich/report/new/fill_in_details_form.html
@@ -103,7 +103,10 @@
[% END %]
<input type="text" value="[% report.name | html %]" name="name" id="form_name" placeholder="[% loc('Your name') %]">
- <label for="form_phone">[% loc('Phone number (optional)') %]</label>
+ <label for="form_phone">[% loc('Phone number') %]</label>
+ [% IF field_errors.phone %]
+ <p class='form-error'>[% field_errors.phone %]</p>
+ [% END %]
<input type="text" value="[% report.user.phone | html %]" name="phone" id="form_phone" placeholder="[% loc('Your phone number') %]">
<div class="form-txt-submit-box">