diff options
author | Struan Donald <struan@exo.org.uk> | 2019-04-03 12:11:49 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-04-09 09:54:47 +0100 |
commit | 0e46602ffb3fa6f1b86474449972bd7d5572af61 (patch) | |
tree | fb91f7b4867205505b21249f20fbf50b5a9e9a6a /templates | |
parent | 15c5006fa25799cd65ee4edd032b49b90513c839 (diff) |
[Northamptonshire] restrict title to 120 characters
Prevent people from using very long titles.
Fixes mysociety/fixmystreet-commercial#1344
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/js/translation_strings.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html index 9747773d9..881f6ecb9 100644 --- a/templates/web/base/js/translation_strings.html +++ b/templates/web/base/js/translation_strings.html @@ -4,7 +4,10 @@ fixmystreet.password_minimum_length = [% c.cobrand.password_minimum_length %]; translation_strings = { update: '[% loc('Please enter a message') | replace("'", "\\'") %]', - title: '[% loc('Please enter a subject') | replace("'", "\\'") %]', + title: { + required: '[% loc('Please enter a subject') | replace("'", "\\'") %]', + maxlength: '[% loc('Summaries are limited to {0} characters in length. Please shorten your summary') | replace("'", "\\'") %]' + }, detail: { required: '[% loc('Please enter some details') | replace("'", "\\'") %]', maxlength: '[% loc('Reports are limited to {0} characters in length. Please shorten your report') | replace("'", "\\'") %]', |