aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-04 17:32:22 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-04 17:32:22 +0100
commit2452c60495af5dd1ffce64f9eea9c843d7259064 (patch)
treeb31c61c46b24af41f8a45381d98562aa86556f50 /templates
parent12bf37ede6631a132f7b10e8e13017043786f422 (diff)
[Zurich] Display errors with phone field
Diffstat (limited to 'templates')
-rw-r--r--templates/web/zurich/report/new/fill_in_details_form.html3
1 files changed, 3 insertions, 0 deletions
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..58dc99722 100644
--- a/templates/web/zurich/report/new/fill_in_details_form.html
+++ b/templates/web/zurich/report/new/fill_in_details_form.html
@@ -104,6 +104,9 @@
<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>
+ [% 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">