diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2019-02-15 18:12:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-25 12:19:50 +0000 |
commit | 257b6a53187c4200aa26e13d18a1be569cab2088 (patch) | |
tree | f3bab52058a53f1e4fd050fe002e53d9f0ab98f0 /templates/web/base/js | |
parent | 0c8aae1ab17617f46f400bab81bb7a3b144b4a1e (diff) |
Duplicate suggestion UI when reporting problems.
The previously staff-only fixmystreet.set_up.manage_duplicates() has
been promoted from staff.js to its own file so that we can use it to
display the duplicate suggestions on the `/report/new` form.
render_duplicate_list (the old refresh_duplicate_list) no longer filters
or slices the reports_list returned by the ajax call, since it turns out
the server handles all of that (`sub _nearby_json` in `Report.pm` and
`sub nearby` in `Nearby.pm`).
Since the expandable list items include the "fancybox" image previews,
the fancybox CSS now has to be included in the `/report/new` page head,
hence the addition of "photo-js.html" in `fill_in_details.html`.
The “Get updates” flow reuses the same JavaScript that handles the
submission of the "Get updates" drawer at the bottom of around pages.
Diffstat (limited to 'templates/web/base/js')
-rw-r--r-- | templates/web/base/js/translation_strings.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html index af3073f91..9747773d9 100644 --- a/templates/web/base/js/translation_strings.html +++ b/templates/web/base/js/translation_strings.html @@ -41,6 +41,9 @@ fixmystreet.password_minimum_length = [% c.cobrand.password_minimum_length %]; how_to_send: '[% loc('How to send successful reports') | replace("'", "\\'") %]', more_details: '[% loc('Details') | replace("'", "\\'") %]', + this_report: '[% loc('This report') | replace("'", "\\'") %]', + this_is_the_problem: '[% loc('This is the problem') | replace("'", "\\'") %]', + or: '[% loc(' or ') | replace("'", "\\'") %]', geolocation_declined: '[% loc('You declined; please fill in the box above') | replace("'", "\\'") %]', |