aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
Commit message (Collapse)AuthorAgeLines
* Merge branch 'template-same-name-spot'Matthew Somerville2019-05-09-0/+9
|\
| * Prevent creation of two templates with same title.Matthew Somerville2019-05-07-0/+9
| |
* | If report hidden, also purge update photos cache.Matthew Somerville2019-05-07-1/+1
| |
* | Improve non_public photo handling.Matthew Somerville2019-05-07-1/+1
|/ | | | | | | Clear the photo cache if the non_public flag is switched on, do not cache non_public or LOGIN_REQUIRED photos, remove non_public photos from memcached recent lists, pass through any cookies on non_public reports/updates, and check the non_public flag on photo lookup.
* Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-2/+1
|
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-1082/+6
|
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-3/+3
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Allow searching for <email> in admin.Matthew Somerville2019-01-29-0/+9
|
* add a cobrand hook to save extra user dataStruan Donald2018-12-17-0/+4
| | | | | Enable the cobrand to save extra data when creating/editing users in the admin.
* Improve update display on admin report edit page.Matthew Somerville2018-11-26-1/+1
|
* Sort user updates in reverse date order.Matthew Somerville2018-11-19-1/+1
|
* Store more original stuff on moderation.Matthew Somerville2018-11-16-1/+6
|
* Deal with possible multiple send_method_useds.Matthew Somerville2018-11-06-3/+3
|
* Allow moderation to edit extra fields/location.Matthew Somerville2018-10-26-0/+1
| | | | If a cobrand provides those fields.
* [Zurich] Fix call to admin_fetch_all_bodies.Matthew Somerville2018-10-22-3/+4
|
* add alert editing to user edit page in adminStruan Donald2018-10-19-4/+26
| | | | disable, enable and delete for user alerts on user_edit page
* list user's alerts on user edit page in adminStruan Donald2018-10-19-0/+26
| | | | | Include a list of alerts the user is subscribed to at the bottom of the user_edit page in the admin.
* Update areas when moving report pinDave Arter2018-10-17-0/+3
| | | | | | | | The change in report_inspect.t from WODC to Oxford City was necessary because moving reports to a location not in Mock::MapIt was resulting in an empties bodies_str in the "test category/body changes" test. Fixes #2181.
* display alert count on admin report pageStruan Donald2018-10-17-0/+13
| | | | | | | Add a count of currently active alerts on new updates for a report to the admin page. Fixes #669
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-4/+8
| | | | | | 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).
* Don't lose from_body if edited by non-superuser.Matthew Somerville2018-09-20-5/+6
| | | | | If an admin with the user_edit permission but not user_assign_body edited a user with from_body set, the from_body field was lost.
* Fix inspector dragging of pins.Matthew Somerville2018-08-09-0/+1
|
* Trim spaces from user/report search input.Matthew Somerville2018-07-31-0/+2
|
* Enable editing of category group in adminDave Arter2018-06-26-0/+6
| | | | Fixes mysociety/fixmystreetforcouncils#275
* add a send login email button to user edit pageStruan Donald2018-06-25-6/+37
| | | | | | | | | Add a button to the user edit page that sends a login token email to the user. Helpful for user support situations where someone is having trouble logging in. Also for situations where you have added a user and want to get them logged in. Fixes #2041
* Catch errors whilst quote_char is set.Matthew Somerville2018-06-13-27/+32
| | | | That way we can make sure we always reset quote_char even if something breaks.
* include automated field when editing contactsStruan Donald2018-06-11-0/+2
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* Add admin tickbox to close report to updates.Matthew Somerville2018-05-23-0/+6
|
* Factor anonymize function to User model.Matthew Somerville2018-05-23-14/+1
|
* Allow cobrand override of admin reports search.Struan Donald2018-05-09-4/+5
| | | | This is to enable custom reporting for cobrands on the reports page.
* Remove needless category mappings.Matthew Somerville2018-05-08-1/+1
| | | | | Both filter categories and new report category lists went through mappings to different data structures, which doesn't seem to be needed.
* display the contents of report's extra field in adminStruan Donald2018-04-26-0/+21
| | | | | | | | Instead of just a Yes/No display a formatted list of values in extra. Has special handling for known fields otherwise just prints them out dumbly. Fixes #1809
* Have only one bodies_to_list variable.Matthew Somerville2018-04-23-1/+1
|
* admin UI to configure fetch_all_problems Open311 optionStruan Donald2018-04-11-5/+18
| | | | | | UI to update the fetch_all_problems setting in extra for a body. This also adds handling for extra body values in the Admin in a similar manner to the way other body params are handled.
* Reliably sort send methods in admin.Matthew Somerville2018-04-10-2/+2
|
* Lower case/strip whitespace from email addresses during user importDave Arter2018-04-10-0/+2
|
* User import admin pageDave Arter2018-04-03-0/+46
| | | | | | This is intended to be an internal tool for quickly creating staff users in bulk. As such, it's hidden at /admin/user_import and is only available to superusers.
* add convert latlong option to open311 body adminStruan Donald2018-03-29-0/+1
|
* 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/+6
|
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-5/+14
|
* 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.
* 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.
* 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.
* 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.
* 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
|
* Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-16/+26
|