aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* 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
* | [Hart] basic Hart cobrandingHakim Cassimally2014-03-05-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally copied from template of Bromley code, substituting logo, council ID, geolocation data, and renaming .scss variables etc. (NB: this was a bad idea. As per notes/cobranding.txt, should have started with less copying of files, as this required more cleanup. Bromley's code has some particularities, like smaller map, split First/Last name fields and so on. The current branch has been rebased to present a slightly idealised picture of the process.) (Includes contributions by @davea and @stevenday) * Some code cleanup and added is_two_tier * Add Hart-specific links to footer * Shift FMS nav out of the main header * Update styling to follow design more closely * Flip nav colours to better indicate links * Make header banner entire width of the page * Stretch footer bg to entire width of page * Add top-level nav links * Correct header height on mobile * Correct wording of top menu item * Remove FMS logo from top of page * Shift top level nav to correct position * Invert media query so IE8 displays header properly * hide folding triangle, as makes no sense on this cobrand * Some more renaming of Bromley to Hart * Treat Hart the same as Bromley in the JS * Whitespace/formatting fixes * Basic test for cobrand * Javascript #map_box fixes * Make sure #map_box is not in desk-only * ensure there is only single map (one .wrapper only) * colour tweaks * Fix example places (postcode, spelling) * Basic FAQ text * Set Zoom level 3 * CSS/HTML/JS tweaks removing Bromley customizations * Switch templates to put navigation in footer, as FMS.com does * remaining HTML/CSS changes for large map * replace favicon * move site-logo scss to one place * make small logo transparent
* | Merge branch 'issues/671-guidance-on-no-reports'Matthew Somerville2014-02-27-0/+3
|\ \
| * | Explanatory text/link on /my with no reportsHakim Cassimally2014-02-26-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usually you won't get to "Your Reports" page without any content (reports or updates) but it's possible to do so, as we just discovered in a client meeting, logging into that page, and arriving on a screen of blank content with no guidance. This patch shows some text and a link to create a new report, if there aren't any problems/updates. Fixes #671
* | | Make sure language is set early enough in email alert loop.Matthew Somerville2014-02-26-1/+2
| | | | | | | | | | | | | | | The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
* | | Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-1/+4
|/ /