aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
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/+5
|\
| * Add a who are you trying to contact option to contact formStruan Donald2014-04-15-0/+5
| | | | | | | | | | | | | | | | | | | | | | 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/+13
|\ \
| * | 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.
| * | Allow comments to be confirmed with no confirmationStruan Donald2014-04-08-1/+9
| |/ | | | | | | | | | | | | | | 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
* / 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.
* 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-1/+1
| | | | | | | | | 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
* 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.
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+5
|\ | | | | | | | | | | | | 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/+1
| |
| * Updated information for Swedish councilsJonas Oberg2014-03-11-0/+4
| |
* | 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
| |
* | Cobrand 'hidden_categories' methodHakim Cassimally2014-03-05-0/+9
| | | | | | | | | | | | | | | | 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.
* | 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
* | Rationalise trailing slashes from admin_base_urlHakim Cassimally2013-12-11-2/+2
| | | | | | | | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* | Remove cached photos if hidden in admin interface.Matthew Somerville2013-11-20-1/+9
| | | | | | | | | | Use the internal hash URL of the photo so that it can still be seen in the admin interface.
* | Version 1.3.v1.3Matthew Somerville2013-11-12-2/+2
| |
* | Include version number on admin config page.Matthew Somerville2013-11-12-0/+7
| |
* | Don't display categories for deleted bodiesChris Mytton2013-11-11-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When a body has been marked as deleted (currently only exposed in the Zurich cobrand's admin) the categories for that body should not be available on the report_new form. Prior to this change there was an error running the 'zurich-overdue-alert' script, because it wasn't expecting the 'bodies_str' field to have any entries in the format 'x|y,z', this prevents this problem from happening in the future (though it doesn't fix any existing entries with this issue).
* | Remove trailing whitespaceAndrew Black2013-11-07-1/+1
| |
* | Create a single date fields and parse as DD/MM/YYYYAndrew Black2013-11-07-17/+8
| |
* | Merge branch '389-report-search-ref' of ↵Matthew Somerville2013-11-04-0/+5
|\ \ | | | | | | | | | https://github.com/andylolz/fixmystreet into andylolz-389-report-search-ref
| * | Include external_id in admin reports search.Andy Lulham2013-10-17-0/+5
| | | | | | | | | | | | Fixes #389
* | | Set confirmed timestamp on any admin unconfirmed state change.Matthew Somerville2013-10-25-1/+1
| | | | | | | | | | | | This fixes #527.
* | | [Zurich] Remove phone number requirement for mobile app reportsChris Mytton2013-10-21-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phone number was made mandatory in #541. To make this change compatible with older versions of the mobile app I've had to drop server side validation of the phone number for requests that come in from mobile apps. To determine if it's a mobile request I'm checking the 'service' parameter in the request, which is only set in requests from the mobile apps [1]. The phone validation will still happen client side for the newer versions of the app, and the web app will continue to work with the server side validations. [1] https://github.com/mysociety/zurich_mobile/blob/1fec2bc21dad9326819105cdbf5d47183e7503ba/www/js/models.js#L75
* | [Zurich] Add user email address validation to the adminChris Mytton2013-10-15-0/+10
| | | | | | | | Closes mysociety/FixMyStreet-Commercial#426
* | Rename Default Area to Everywhere.Matthew Somerville2013-10-11-2/+2
| |
* | Add a view-configuration admin page.Matthew Somerville2013-09-19-0/+4
| | | | | | | | Fixes #561.
* | Add fullsize photo to Photo controllerChris Mytton2013-09-12-6/+8
| | | | | | | | | | This is used in the Zurich admin to view a full size version of the image before it has been made public.
* | Merge branch 'zurich-mark-external-addresses-deleted'Chris Mytton2013-09-12-1/+2
|\ \ | | | | | | | | | | | | Conflicts: t/cobrand/zurich.t
| * | [Zurich] Add deleted to admin body_params methodChris Mytton2013-09-10-1/+2
| | |
* | | Merge branch 'zurich-mandatory-telephone-number'Chris Mytton2013-09-12-0/+3
|\ \ \ | |/ / |/| |
| * | Merge branch 'master' into zurich-mandatory-telephone-numberChris Mytton2013-09-05-2/+5
| |\|
| * | [Zurich] Localise phone error messageChris Mytton2013-09-05-1/+1
| | |
| * | [Zurich] Make the phone number field requiredChris Mytton2013-09-04-0/+3
| | |
* | | clarify presentation on lagged users pageDave Whiteland2013-09-05-1/+13
| | | | | | | | | | | | | | | now shows which flagged users are in abuse table, which seems important (separate issue #523 to make managing and indeed viewing abuse table)
* | | show warning on body with no live contactsDave Whiteland2013-09-05-0/+1
| | |
* | | remove SHOW_ADMIN_HINTS configDave Whiteland2013-09-05-3/+2
| | | | | | | | | | | | | | | admin hints are displayed *like it or not* (actually, could hide for a given cobrand with CSS setting display:none)
* | | show "no bodies" hint on empty body dbDave Whiteland2013-09-05-0/+3
| |/ |/|
* | Use format_datetime for DBIx::Class searches to get rid of warnings when ↵Edmund von der Burg2013-09-05-2/+5
|/ | | | running test suite
* [Zurich] Ensure only superusers can add/edit bodiesChris Mytton2013-09-04-0/+2
|
* [Zurich] Only super user can edit bodiesChris Mytton2013-09-03-0/+8
|
* Send back a list of titles in new report ajax detailsStruan Donald2013-08-01-0/+3
| | | | | This is so that the mobile app can use the list to build the appropriate UI as fixing the HTML that is sent for the site is too awful.
* Update contact form error message.Matthew Somerville2013-07-18-1/+1
|
* Redirect away from incorrect council pages on council sites.Matthew Somerville2013-05-21-0/+5
|