aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
Commit message (Collapse)AuthorAgeLines
* 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
|
* Admin ability to make user anonymous.Matthew Somerville2018-01-31-2/+11
|
* Add some new Body model helper methods.Matthew Somerville2018-01-03-11/+4
| | | | And use the existing ones more.
* Fix spelling of administrator.Matthew Somerville2017-12-15-1/+1
|
* Fix issues with send method category change.Matthew Somerville2017-12-13-8/+5
| | | | | | Use the send method recorded at the time of sending, not the current one (it may have changed since), and only resend if the new send methods are not a subset of the old.
* Only allow one auto-response template per category/state.Dave Arter2017-12-04-6/+39
|
* Consolidate summary statistics pages.Matthew Somerville2017-11-29-1/+1
|
* Refactor stats pages to their own controller.Matthew Somerville2017-11-29-150/+1
|
* allow admin to unban a userStruan Donald2017-11-07-3/+27
| | | | | | | Add an unban button to the user edit page when a user is in the abuse table. Fixes #1881
* do not override template when displaying body contacts as textStruan Donald2017-11-07-1/+4
| | | | | | | move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
* Fix issue editing user previously lacking a name.Matthew Somerville2017-11-07-3/+4
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* log all state changes in admin as commentsStruan Donald2017-10-16-1/+22
| | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* Accept +1 geographic numbers as possibly mobile.Matthew Somerville2017-10-05-32/+31
| | | | | We have no way of knowing whether a +1 geographic number is fixed line or mobile, so accept them all as potentially mobile.
* correctly handle category changes in inspector formStruan Donald2017-10-04-11/+16
| | | | | | | | | | | This resolves two issues when updating the report category in the staff users inspect form: * report category is only updated if the rest of the form is valid * only one update on the report is left Previously changing the category would create an update in addition to any public update created, and the category was always updated even when validation errors occurred elsewhere in the form.
* Update admin interface for 'phone' users.Matthew Somerville2017-09-30-124/+209
| | | | | | | This includes search/flagging users, editing user on the report and update edit pages, and user adding/editing itself. Add some more tests for user adding/editing.
* Add 'verified' database columns for email/phone.Matthew Somerville2017-09-30-1/+2
| | | | | These are so we can state whether a user's email address or phone number have been verified by confirmation email/text.
* area stats page for staff usersStruan Donald2017-09-20-2/+9
| | | | | | | | | 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
* Fix issue editing category with '/' in it.Matthew Somerville2017-09-11-35/+7
| | | | | | Simplify chaining of body/category admin URLs so that all categories are treated the same, with `/` or without, and the template will then always have its CSRF token.
* Fix bug if first page after restart is admin.Matthew Somerville2017-09-11-5/+1
| | | | | | | | 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.
* Sort languages in template.Matthew Somerville2017-08-25-1/+1
|
* Add site-wide extra fields for reports, and admin UI to manageDave Arter2017-08-17-0/+42
| | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743.
* Add fn to fetch bodies plus the translated names.Matthew Somerville2017-08-15-1/+1
|