aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin
Commit message (Collapse)AuthorAgeLines
* Refactor Reports controller a bit.Matthew Somerville2019-10-14-0/+1
| | | | | Split load_and_group_problems in two, split out category list/map setup, and factor out sort stash setting. No actual changes.
* [Oxfordshire] Remove unused Exor RDI code.Matthew Somerville2019-10-10-81/+0
|
* Merge branch '2469-improve-admin-category-form'Matthew Somerville2019-09-30-0/+16
|\
| * Add top disable-form field to admin category form.Matthew Somerville2019-09-30-0/+16
| |
* | Merge branch 'zurich-staging'Matthew Somerville2019-09-30-1/+5
|\ \
| * | [Zurich] Allow external body to link to a categoryMatthew Somerville2019-09-30-1/+5
| |/
* | [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-1/+2
| | | | | | | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* | do not send triage comments in alertsStruan Donald2019-09-27-1/+14
| | | | | | | | | | | | add a check into the Alerts script to skip comments that have `triage_report` set in extra. Otherwise we send these our in new_updates alerts.
* | [IsleOfWight] add an admin interface to triage reportsStruan Donald2019-09-27-0/+149
|/ | | | | | | | | | | | | | | | | | On reports with a state of `for_triage` override the `_inspect.html` template to display one which allows only allows the user to change the category from one with a 'Triage' send_method to a non Triage send_method. When saved this records a comment with the original category and the category it was triaged to. This is hidden from the site as it's only used for audit purposes and sending over Open311. This assumes that the triage categories have the same names as the groups of the confirm categories. It uses this to select the first confirm category in the group corresponding to the triage category. This also makes the sidebar geolocation onclick handler check for the presence of the button, as the triage inspect form does not have it.
* Allow contact send method to be unset always.Matthew Somerville2019-09-05-1/+1
| | | | | | If a body was set to Open311, and a contact set to Email, it was impossible to unset the contact's send method and set an Open311 code, because it would always demaned a valid email address.
* Redirect correctly after editing user to remove them from cobrandDave Arter2019-08-07-2/+15
|
* Allow password hash setting in user import.Matthew Somerville2019-07-10-10/+10
|
* admin interface for adding multiple groups to a categoryStruan Donald2019-06-17-2/+7
|
* Move ResponsePriority admin to HTML::FormHandler.Matthew Somerville2019-06-07-72/+68
|
* Some small Roles fixes.Matthew Somerville2019-06-07-4/+7
| | | | | | Code: Prefetch body data to reduce queries, remove an unused variable. Form: Move outer <ul> class to form from widget, and include <li>. Template: Escape role.name, and mark "Create" for translation.
* Add role to users from admin user list page.Matthew Somerville2019-05-28-0/+17
|
* User import allowing roles.Matthew Somerville2019-05-28-8/+19
|
* Add role search to users page.Matthew Somerville2019-05-28-20/+44
|
* Add way to pick role for a user.Matthew Somerville2019-05-28-10/+42
|
* Add Role adding/editing/deleting admin.Matthew Somerville2019-05-28-0/+96
|
* Fix uses of != instead of not_in.Matthew Somerville2019-05-28-4/+4
|
* Consistent status message block.Matthew Somerville2019-05-28-2/+1
|
* Show field entries if error on add user formMatthew Somerville2019-05-28-4/+5
|
* Remove need for add detachMatthew Somerville2019-05-28-1/+0
|
* If report hidden, also purge update photos cache.Matthew Somerville2019-05-07-1/+1
|
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-3/+3
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-8/+6
|
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-2/+6
|
* Add DateRange class.Matthew Somerville2019-03-04-7/+9
| | | | | This simplifies the places where a date range is used; it also makes Dashboard date parsing more flexible.
* Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-2/+2
|
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-0/+1159
|
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-0/+1
| | | | | | Use a HashRefInflator wherever all_sorted is used, with consequential changes to deal with it now not being an object (e.g. add some with_* functions for manual fetching of extra data).
* [Oxfordshire] Fix admin exor download page.Matthew Somerville2018-04-16-1/+1
| | | | | 07906f40 changed the HTML date input form, but did not update the server parsing of the format.
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+27
|
* Consolidate summary statistics pages.Matthew Somerville2017-11-29-307/+1
|
* Refactor stats pages to their own controller.Matthew Somerville2017-11-29-0/+156
|
* correctly handle average state changes of 0 days in area statsStruan Donald2017-10-04-1/+6
| | | | | If no problems have changed status then set the average to -1 so we can cope with an average status change of 0 days.
* move area stats page problems by status calc into databaseStruan Donald2017-10-04-9/+11
| | | | | | | | | | | Doing this calculation in code turns out to be much too slow. As part of this also fix an issue where if a report changed state last month but had a further comment this month that was counted as being a state change this month. Also tweak the 'last month' start date to be midnight so the stats don't change throughout the day.
* area stats page for staff usersStruan Donald2017-09-20-0/+218
| | | | | | | | | Admin page to show some simple summary stats for an area. If the user has been assigned to an area then they will see the stats for that area. Superusers can pick which area they want to view. For mysociety/fixmystreetforcouncils#2
* Merge branch 'issues/forcouncils/224-default-priority'Struan Donald2017-09-13-0/+1
|\
| * edit and display default response priority in adminStruan Donald2017-09-13-0/+1
| |
* | Merge branch '1836-slash-category-bug'Matthew Somerville2017-09-11-30/+0
|\ \
| * | Fix bug if first page after restart is admin.Matthew Somerville2017-09-11-30/+0
| |/ | | | | | | | | | | | | | | If the first page looked at after server launch was an admin one, the User object was getting a different schema attached than the one used by everything else (so e.g. the cobrand was not then available to it, causing a crash on a body page). Using auto instead of begin prevents this from happening, as the setup_request auto always runs first.
* / [Oxfordshire] Log when problems sent by RDI email.Dave Arter2017-09-11-0/+1
|/ | | | | | | | The timestamp of when a problem was included in an RDI is shown on the problem’s inspector form. Also check back and include any inspected reports that for some reason haven't been instructed yet. Fixes mysociety/fixmystreetforcouncils#223.
* Admin interface for editing report states.Matthew Somerville2017-08-31-0/+102
|
* Add site-wide extra fields for reports, and admin UI to manageDave Arter2017-08-17-0/+61
| | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743.
* translate defect category names in the controllerStruan Donald2017-08-16-1/+1
| | | | | | | As we're only passing category names through we need to do the translation in the controller and not the template Fixes mysociety/fixmystreetforcouncils#218
* [Oxfordshire] RDI file should show all inspections as happening on the same dateDave Arter2017-07-24-0/+1
| | | | Fixes mysociety/fixmystreetforcouncils#203
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-177/+21
|
* [Oxfordshire] Include nearest info in RDI output.Matthew Somerville2017-05-02-1/+9
|