aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* fix timezone problems with offline inspector commentsStruan Donald2018-03-29-1/+7
| | | | | | | Comments added offline by an inspector set the time in JavaScript using a UTC epoch. We need to add the FMS timezone to this so it's in the timezone the database expects for timestamps otherwise it's incorrect when we fetch it back out
* Don’t show empty ‘provide extra detail’ sectionDave Arter2018-03-29-0/+4
| | | | | | Hides the empty “Help <council> resolve your problem quicker” section of the new report form if report metas for the selected category are all hidden fields.
* Make it easier to identify Open311 categories in category checkbox listDave Arter2018-03-29-0/+1
| | | | | | Displays the category’s email address (service code, for Open311) as a tooltip. This makes it easier to identify the right category when editing response templates, for example.
* Fix invalid SQL on cobrand admin update edit pagesDave Arter2018-03-29-1/+1
|
* Allow cobrands to add extra MapIt areas & typesDave Arter2018-03-29-0/+11
|
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-5/+14
|
* Add CORS header to Open311 output.Matthew Somerville2018-03-22-0/+1
|
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+27
|
* Merge branch 'store-contributed-as'Matthew Somerville2018-03-20-11/+22
|\
| * Store contributed-as data.Matthew Somerville2018-03-20-11/+22
| | | | | | | | | | Store if the report/update was created by someone using the contributed-as dropdown, and use that information to perhaps not send report-sent emails.
* | Pass columns CSV needs into Problem->as_hashref.Matthew Somerville2018-03-19-9/+4
|/ | | | Then it can skip working out some things as they are not needed.
* Merge branch '2023-bad-open311-dates'Matthew Somerville2018-03-16-4/+4
|\
| * Truncate dates in Open311 output to the second.Matthew Somerville2018-03-15-4/+4
| | | | | | | | This fixes #2023 by removing the comma.
* | Merge branch 'rutland-integration'Struan Donald2018-03-15-2/+4
|\ \
| * | permit blank updates to be fetched over Open311Struan Donald2018-03-15-0/+1
| | | | | | | | | | | | | | | Add a per body configuration option to allow Open311 updates to contain only a status change, rather than emitting a warning when this happens.
| * | Deal with 'automated' Open311 service attributes.Struan Donald2018-03-15-2/+2
| | | | | | | | | | | | | | | | | | This is part of the integration with our open311-adapter. The automated property indicates that it's an expected value but either it's going to be set by the server, or appear as a hidden field.
| * | fetch new problems over open311Struan Donald2018-03-15-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the display of existing reports from the back end on FMS if the body is configured to do this. Reports will not be created if they are missing an id, a lat or a long, if the lat/long is outside the area covered by the body, if there is already a report with a matching id, or if we can't parse out the request time.
* | | Fix JSON-encoding crash on /report/ajaxDave Arter2018-03-15-1/+7
|/ /
* | Merge branch 'issues/commercial/987-zurich-csv-updates'Matthew Somerville2018-03-14-1/+27
|\ \ | |/ |/|
| * [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-0/+3
| | | | | | | | | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
| * Add a way to store extra cobrand data on contacts.Matthew Somerville2018-03-06-0/+10
| |
| * Remove category_options_copy.Matthew Somerville2018-03-06-1/+7
| | | | | | | | | | | | | | | | This variable existed to keep a copy of the categories before it was overwritten by report_edit_location (if a bad location was provided) calling the variable setup functions again. But really, the function shouldn't be overwriting the stash, it's only testing the lookup and so should restore the stash at its end.
| * [Zurich] Refactor to use same CSV generation code.Matthew Somerville2018-03-05-0/+7
| |
* | Show default start date on dashboard.Matthew Somerville2018-03-13-24/+11
|/ | | | This makes it clearer what is being shown.
* Fix post-edit issues on admin report edit page.Matthew Somerville2018-03-02-34/+32
| | | | | If you rotated a photo, updates and the category list weren't loaded. If you changed a report's state, the map pin colour was derived from the old state.
* [Zurich] Show to-be-hidden reports until confirmedMatthew Somerville2018-03-02-2/+1
|
* Add development email previewer.Matthew Somerville2018-03-01-0/+136
|
* Fix duplicate report selectionDave Arter2018-02-20-2/+2
| | | | | | | | The underlying DOM structure returned from /report/xx/nearby.json had changed, meaning the "Which report is it a duplicate of?" list on the inspector form wasn't displaying any reports. This commit introduces a template specifically for the nearby URL instead of overloading the on_map_list_items template.
* Merge branch '1939-questionnaire-links'Matthew Somerville2018-02-19-25/+57
|\
| * Store questionnaire data as soon as opened.Matthew Somerville2018-02-16-21/+40
| | | | | | | | | | | | This means the questionnaire is considered 'answered' as soon as a (HTML) link is clicked, which I think is okay. Then filling in the questionnaire form will update the same questionnaire.
| * Show any ‘steady-state’ questionnaire response.Matthew Somerville2018-02-16-1/+4
| |
| * Link update made during questionnaire to it.Matthew Somerville2018-02-16-2/+11
| | | | | | | | | | This means we don't show separate 'Still open' messages when an update was also left at the same time.
| * Prefill first question from questionnaire email.Matthew Somerville2018-02-16-1/+2
| |
* | Merge branch 'issues/forcouncils/276-staff-only-reports'Matthew Somerville2018-02-13-27/+45
|\ \ | |/ |/|
| * Show non_public reports to staff on list pages.Matthew Somerville2018-02-13-10/+17
| |
| * Allow inspectors to see/change non_public reports.Matthew Somerville2018-02-09-2/+11
| |
| * Only leave inspect update if text or state change.Matthew Somerville2018-02-08-15/+17
| | | | | | | | | | We don't want to leave a blank update when e.g. only internal things have changed.
* | Improvements to report_sent_confirmation_email functionDave Arter2018-02-12-4/+5
|/ | | | | | - Send ‘report sent’ emails from cobrand’s contact address - Don’t send email when report is made using contribute-as-other and report_sent_confirmation_email is active.
* Allow updates to be left as another user with phone numberDave Arter2018-02-07-2/+10
|
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-2/+16
|
* Merge branch '2fa-superuser'Matthew Somerville2018-02-07-18/+73
|\
| * Allow two-factor to work during creation flow.Matthew Somerville2018-02-07-13/+34
| |
| * Add two-factor authentication for superusers.Matthew Somerville2018-02-07-5/+39
| |
* | Merge branch '1944-admin-remove-account'Matthew Somerville2018-02-07-0/+35
|\ \
| * | Admin ability to remove user account details.Matthew Somerville2018-02-06-0/+24
| | |
| * | Add admin ability to log user out.Matthew Somerville2018-02-06-0/+11
| |/
* | Merge branch 'password-tests'Matthew Somerville2018-02-06-8/+72
|\ \
| * | Add length/common password checking.Matthew Somerville2018-02-06-8/+72
| |/
* | Increase bcrypt cost.Matthew Somerville2018-02-01-0/+6
| | | | | | | | Though when running tests, decrease it for speed.
* | Ask for current pw/send email on password change.Matthew Somerville2018-02-01-6/+28
|/ | | | | If they have a current password, ask for it; if they don't, send a confirmation email.