aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
Commit message (Collapse)AuthorAgeLines
* Remove cached photos before updating db field.Matthew Somerville2019-11-18-1/+1
| | | | | If the photo field is updated first, then the cache removal doesn't think there are any photos to remove.
* Factor out admin reports code to own controller.Matthew Somerville2019-11-08-485/+7
|
* Factor out admin template code to own controller.Matthew Somerville2019-11-08-160/+0
|
* Restructured admin category extra-metadata-formZarino Zappia2019-10-03-28/+35
| | | | | | | | | * Much simplified display of metadata field options. * Fields can now be dragged into the desired order. * Drop-down question form disabling can now have a different message per option. Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
* [IsleOfWight] add an admin interface to triage reportsStruan Donald2019-09-27-0/+3
| | | | | | | | | | | | | | | | | | 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 form-disabling per Open311 question answer.Matthew Somerville2019-08-29-0/+2
|
* Add admin to disable reporting form per category.Dave Arter2019-08-29-0/+2
| | | | | Remove all existing hard-coded register_category calls, and have a new way of implementing staff_ignore.
* [Open311] Add 'protected' category extra flag.Struan Donald2019-08-23-0/+2
| | | | | If an extra field on a category has a protected flag then do not overwrite or remove it when populating categories.
* Ignore very new reports in admin unsent list.Matthew Somerville2019-08-23-0/+2
|
* Allow cobrands to disable admin resending.Matthew Somerville2019-07-09-3/+4
|
* Simpler admin search ordering.Matthew Somerville2019-06-26-3/+3
| | | | This is much quicker, at not much cost.
* Turn on quote_names.Matthew Somerville2019-06-26-54/+35
|
* Fix uses of != instead of not_in.Matthew Somerville2019-05-28-1/+1
|
* Consistent status message block.Matthew Somerville2019-05-28-8/+5
|
* 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
|