aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/header.html3
-rw-r--r--templates/web/default/js_validation_msgs.html15
-rw-r--r--templates/web/default/report/new/fill_in_details_form.html2
3 files changed, 19 insertions, 1 deletions
diff --git a/templates/web/default/header.html b/templates/web/default/header.html
index b2bfd27d7..8778f41b1 100644
--- a/templates/web/default/header.html
+++ b/templates/web/default/header.html
@@ -8,6 +8,8 @@
<link rel="stylesheet" type="text/css" href="/css/ie6.css">
<![endif]-->
+ [% INCLUDE 'js_validation_msgs.html' %]
+
[% INCLUDE 'common_header_tags.html' %]
[% IF c.req.uri.host == 'osm.fixmystreet.com' %]
@@ -15,6 +17,7 @@
[% END %]
[% INCLUDE 'tracking_code.html' %]
+
</head>
<body>
diff --git a/templates/web/default/js_validation_msgs.html b/templates/web/default/js_validation_msgs.html
new file mode 100644
index 000000000..140f22964
--- /dev/null
+++ b/templates/web/default/js_validation_msgs.html
@@ -0,0 +1,15 @@
+<script type="text/javascript">
+ validation_strings = {
+ title: '[% loc('Please enter a subject') %]',
+ detail: '[% loc('Please enter some details') %]',
+ name: {
+ required: '[% loc('Please enter your name') %]',
+ validName: '[% loc('Please enter your full name, councils need this information - if you do not wish your name to be shown on the site, untick the box') %]',
+ },
+ category: '[% loc('Please choose a category') %]',
+ email: {
+ required: '[% loc('Please enter your email') %]',
+ email: '[% loc('Please enter a valid email') %]',
+ }
+ };
+</script>
diff --git a/templates/web/default/report/new/fill_in_details_form.html b/templates/web/default/report/new/fill_in_details_form.html
index eeba69714..58b379f54 100644
--- a/templates/web/default/report/new/fill_in_details_form.html
+++ b/templates/web/default/report/new/fill_in_details_form.html
@@ -192,7 +192,7 @@
<div class="form-field">
<label for="form_name">[% loc('Your name:') %]</label>
- <input type="text" value="[% report.name | html %]" name="name" id="form_name" size="25">
+ <input type="text" class="validName" value="[% report.name | html %]" name="name" id="form_name" size="25">
</div>
<div class="checkbox">