| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
Use normal contact email, with special override in Area 7.
|
| |
|
|
|
|
|
| |
Check in road lookup DB for junctions based on place name, motorway
services and the joining road.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is taken from the sort-my-sign repo. It allows the user to search
for motorways names and junction numbers, e.g. "M60, Junction 2", and
then geocodes that using a SQLite database created from Highways England
markerpost locations.
|
|\ |
|
| | |
|
|/ |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
This state will appear when reporting if you are logged in as a staff
member of the relevant body, but otherwise not appear on the site.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
For some reason switching to a Select stopped the update_model changes being applied
when persisting the model, meaning the INSERT query failed because the cobrand column
was null. This commit switches to a hidden input field for the cobrand which I’m
not super keen on, but it does get the job done...
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
If a user had no confirmed updates, but did have e.g. an unconfirmed
update that had mark_fixed set, you would get an error when trying to
hide the user's reports/updates.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After this change, you can safely add the TfL body to other councils
(namely the ones surrounding London that include TfL bus stops);
clicking in those councils on other cobrands will have no change, as the
TfL body will be fully ignored on a non-London council, but on the TfL
cobrand it will allow it for e.g. the selection of bus stops outside
London.
It removes the body rather than just all its categories to prevent a "We
do not have details of the other body covering this area" message
appearing.
|
|
|
|
|
|
| |
Checks that the correct bits of the problem's extra fields are sent when
creating the report in Open311, and that extra bits of info are sent
when sending comments to Open311.
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Use Northamptonshire map tiles via WMS.
|
|/
|
|
|
| |
Basic config and setup files for using WMS based map tiles. These still
require config in appropriate cobrand perl and javascript files
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This basic service worker behaves identically to the existing appcache -
some static scripts and CSS are cached, any HTML offline instead returns
a static HTML page that knows how to show data on stored problems out of
localStorage (stored there when /my/planned was visited online). Inspect
form submissions will be captured and can be synced back when online.
Once feature parity is established, we will then remove appcache, switch
from using localStorage to the cache API, and hopefully move all offline
support into the service worker.
|
|
|
|
|
| |
Reads information from a theme object if present, and icons from a
theme directory, with fallbacks.
|
|\ |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
If you've e.g. come from an email link that lets you view a private
report, hide reporting/getting updates/sharing, and replace the update
form with a link saying you need to sign in.
|
| |/
| |
| |
| |
| | |
Use a token that does not log the user in, but lets the report be shown,
even if it's a private report. Allow old tokens of that type to work.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `IF category_extras.$category.size` condition in category_extras.html
was using an escaped string for `$category`, meaning the lookup would
always fail for categories that had an ampersand in their name. The result
of this was an empty `<div id="category_meta">`, and no extra fields shown
to the user. This caused issues when one or more of the fields were
required, as they were always empty and the error message wasn't being
rendered and shown to the user. This meant the user would see their report
form over and over again when submitting instead of useful feedback.
We also ensure $category is always a SafeString when used as a key into
a hashref in other templates.
Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/126
|
|
|
|
|
|
|
|
|
|
|
|
| |
Attempting to load the /report/ajax/<id> URL for a problem that
had a public response and wasn't in the ‘external’ state was causing
a crash because the call to FixMyStreet::App::View::Web::add_links
in updates_as_hashref was returning a FixMyStreet::Template::SafeString
that the JSON module didn't know how to serialise.
This commit adds a TO_JSON method to SafeString, and ensures the output
of /report/ajax is JSON-encoded with convert_blessed turned on so the
TO_JSON method is called.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
Includes an updated version of jquery-multi-select.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the existing logic to account for the fact that multiple
questions might have the disable form checkbox ticked for one of their
options.
At the moment this just displays one of the messages at a time, with the
first one taking priority. So if you have a "Is this an emergency"
question and a "Is this on private land" question which both disable the
form, and the user has selected "Yes" to both, then only the message for
the first question is displayed. This can potentially be improved in the
future, but seemed out of scope for this change.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes a bit of refactoring of PhotoSet::get_image_data to make
it easier to call subsequent methods on the photo object. We then
do this to get the width and height.
Also adds width/height attributes to FixMyStreet::ImageMagick
Attributes are updated every time the image is transformed and before
the as_blob data, which also undefs the image, is returned so it always
present for subsequent calls.
Fixes #2394.
|
|
|
|
|
| |
The changes in 27fe9940 to send more P1 emails meant the out-of-hours
email wasn't being correct sent when it should have been.
|
|\ |
|
| |
| |
| |
| | |
It was using the branding/URL of the site the update was left on.
|
|/ |
|
|
|
|
|
|
|
| |
To avoid issues with autogenerated updates in the bodies back-end
happening quicker that the back-end returns the external_id to us ignore
the check for comment being earlier than the last update if it's the
first comment.
|