aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* Remove Barnet-specific category lookup & checksDave Arter2014-04-25-14/+7
|
* Also remove cached file when photo removed.Matthew Somerville2014-04-17-5/+6
|
* Merge branch 'improve-contact-form'Struan Donald2014-04-17-0/+31
|\
| * Add a who are you trying to contact option to contact formStruan Donald2014-04-15-0/+31
| | | | | | | | | | | | | | | | | | | | | | In order to try and cut down on people mistakingly using this form to try and contact their council all some 'who are you trying to contact' options to the form that display appropriate messaged unless the 'FMS team option is selected. Add the validation code for this in the cobrand module. Fixes #41
* | alter pave url sent to analytics on report completionStruan Donald2014-04-16-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to allow us to do funnel analysis in google analytics we need to send a differnt page url when a user completes a report. To do this we add a report_created=1 to the query string on either the report page or the report confirmation page for logged in and confirm by email users respectively. There's a bit of complication as we don't want to set a session cookie everywhere as that will break caching so we set a stash variable, although if the user is logged in this is controlled by a variable in the flash as there is already a session cookie at this point. also, removes the code that sends an event upon report completion as this was no use for funnel analysis.
* | Merge branch 'zerotb'Struan Donald2014-04-11-1/+106
|\ \
| * | Use flags to indicate type of location errorStruan Donald2014-04-08-0/+4
| | | | | | | | | | | | | | | | | | | | | This makes it a bit easier to override the message in templates which makes it a bit easier for cobrands. Leaves the default error message in location_error stash key which should prevent any existing logic breaking.
| * | replace default pins with clinic logoStruan Donald2014-04-08-0/+8
| | | | | | | | | | | | add files and change config in cobrand
| * | Changes to alert-update formatting for ZeroTBStruan Donald2014-04-08-0/+13
| | | | | | | | | | | | | | | Include date in alerts Remove everything apart from the update text as we don't need it
| * | Add Cobrand config to include update date in email alertsStruan Donald2014-04-08-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for sites where the updates aren't published on the site so you need a bit more context in the email alerts. Add inlude_time_in_update_alerts to default cobrand, off as default If this is set then the date is added after the name string in the email, passing in 'alert' as the type to dt_prettify in order to allow the cobrand to format it accordingly. This does require pulling out the alert confirmed time from the database in the send_alerts code where it wasn't before.
| * | Add a searchable dropdown of clinic names to postcode formStruan Donald2014-04-08-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uses select2 for the dropdown and a cobrand call to fetch the list of report titles as the clinic names. Relies on a redirect in httpd.conf to make the non JS version work. Still leaves the postcode search in place as select2 won't accept custom terms if you base it on a select box, which we want to do so it works if JavaScript is disabled Fixes #723
| * | turn on never_confirm_updates for ZeroTBStruan Donald2014-04-08-0/+1
| | | | | | | | | | | | | | | and display a message on the report page to indicate the update has been sent as it's never displayed
| * | Allow comments to be confirmed with no confirmationStruan Donald2014-04-08-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | Add never_confirm_updates setting to cobrand that, when set to 0 means that comments are confirmed with no confirmation step. Essentially behaves as it would if the user was logged in. Also add a flag to the flash that indicates the comment was accepted to you can display a message on the report page if required
| * | change text of location search instructionsStruan Donald2014-04-08-0/+2
| | |
| * | cobrand file with geocoder etc configStruan Donald2014-04-08-0/+31
| |/ | | | | | | | | | | | | also, make readonly, disable photos, questionnaires, never hide old pins Fixes #701
* / Fire a google analytics event on report completionStruan Donald2014-04-09-0/+2
|/ | | | | | | | At the moment it's hard to use google analytics to track when someone has completed a report due to the various redirects which can occur too quickly for the analytics javascript to fire. So now we fire an event if we've set a flash value. This also allows us to track how they created the report.
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-9/+11
| | | | Add some comments to the top of the open311 bin scripts.
* Use local DateTimes in dashboard and its tests.Matthew Somerville2014-04-07-8/+9
| | | | | Otherwise oddities arise due to summer time differences putting a BST now-6d23h time behind a UTC now+1s-1w.
* Allow cobrands to set their own path to pin filesHakim Cassimally2014-03-25-2/+14
| | | | | | | | | New cobrand function of pin_path that sets the path to where the image files for pins are located. Defaults to /i This still means they need to use the same file names but they can at least put those in a cobrand directory rather than having to overwrite the files in /i or fudge it with pin_colour
* Add no-op sending method.Matthew Somerville2014-03-22-0/+12
| | | | | This simply always skips reports for this body, in case you need to suspend reports there. Fixes #507.
* Ipswich/St Edmundsbury roads handled by Suffolk.Matthew Somerville2014-03-21-6/+0
|
* Change default email indentation to none.Matthew Somerville2014-03-17-14/+2
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* Set report->send_questionnaire on report creationAndy Lulham2014-03-12-0/+1
| | | | | Include a one-off script that sets send_questionnaire to 0 for all available cobrands that have send_questionnaires set to 0.
* [Zurich] basic commandline tool for geocoderHakim Cassimally2014-03-12-0/+1
| | | | | Also add warning to Geocoder to pass on server error if you are running in development.
* Use config's EMAIL_DOMAIN in cron email Message-ID.Matthew Somerville2014-03-12-2/+2
| | | | Rather than hardcoded mysociety.org.
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+487
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Add `external_url' column to `body' table.Jon Kristensen2014-03-11-0/+3
| |
| * Remove hardcoded Swedish translationsJon Kristensen2014-03-11-3/+3
| |
| * Move Swedish changes from Geocode/OSM.pm to Geocode/FixaMinGata.pmJon Kristensen2014-03-11-26/+214
| |
| * Fix "Statens vegvesen" bugJon Kristensen2014-03-11-3/+2
| | | | | | | | Fixes #4.
| * Added MapQuest/OSM attribution.Jonas Oberg2014-03-11-0/+4
| |
| * fixed search resultsRikard2014-03-11-41/+22
| | | | | | | | Now, instead of selecting a potentially bad result, it shows a list of results hashed together using the first three words in display_name.
| * Added link to service for commentsJonas Oberg2014-03-11-0/+2
| |
| * Updated to address square and parkJonas Oberg2014-03-11-4/+6
| |
| * Pushed fix for Göteborg cityJonas Oberg2014-03-11-2/+7
| |
| * Added hamletJonas Oberg2014-03-11-1/+2
| |
| * Updated with small bug fixesJonas Oberg2014-03-11-3/+12
| |
| * Updated address search to behave better.. I think.Jonas Oberg2014-03-11-2/+19
| |
| * Updated translations manuallyJonas Oberg2014-03-11-3/+3
| |
| * Updated headerJonas Oberg2014-03-11-0/+5
| |
| * Updated translation of datesJonas Oberg2014-03-11-0/+4
| |
| * Updated information for Swedish councilsJonas Oberg2014-03-11-0/+4
| |
| * Added Locale for sv_SE dirs and files, the cobrand perlfile and templatesRikard2014-03-11-1/+4
| |
| * Added Swedish locale dir and files, and also the Cobrand FixaMinGata ↵Rikard2013-09-05-0/+260
| | | | | | | | (Swedish version of fixmystreet in the making
* | Export reports as CSV on /dashboardHakim Cassimally2014-03-10-6/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a button to download the details and text of reports at the second "Look up" button on /dashboard. Provides acknowledged, fixed, closed dates by parsing updates. Fixes #692 (and mysociety/FixMyStreet-Commercial#399) Email is not shown, and name honours anonymous flag: as /dashboard is accessible to people who are from_body (who still do not see anon-users name and email in the FMS web app.) A basic test is provided as per Zurich's similar report.
* | Quash DBIC warnings re DateTime in dashboardHakim Cassimally2014-03-10-5/+11
| |
* | fix wrong diasmbig field for ChileDave Whiteland2014-03-07-1/+1
| |
* | add BellaVistaEnAccion: FMS SantiagoDave Whiteland2014-03-07-0/+33
| |
* | Cobrand 'hidden_categories' methodHakim Cassimally2014-03-05-0/+15
| | | | | | | | | | | | | | | | This deals with the issue of hiding a two_tier category for the Hart cobrand, without removing it for the whole of Hampshire, e.g. see https://github.com/mysociety/FixMyStreet-Commercial/issues/477 but is written as a generic extension to setup_categories_and_bodies as it may be generally useful.
* | [Hart] Guidance related to two_tier, e.g. HCCHakim Cassimally2014-03-05-3/+9
| | | | | | | | | | | | | | | | Guidance in prominent places (report, all reports, and message on confirming problem.) Should alleviate mysociety/FixMyStreet-Commercial#481 and mysociety/FixMyStreet-Commercial#485