aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin
Commit message (Collapse)AuthorAgeLines
* do not send triage comments in alertsStruan Donald2019-09-27-0/+15
| | | | | | 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/+112
| | | | | | | | | | | | | | | | | | 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-0/+18
| | | | | | 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.
* Add admin to disable reporting form per category.Dave Arter2019-08-29-0/+7
| | | | | 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/+6
| | | | | If an extra field on a category has a protected flag then do not overwrite or remove it when populating categories.
* Redirect correctly after editing user to remove them from cobrandDave Arter2019-08-07-0/+43
|
* admin interface for adding multiple groups to a categoryStruan Donald2019-06-17-1/+31
|
* configure category_groups via COBRAND_FEATURESStruan Donald2019-06-17-8/+3
| | | | | Rather than have a method in the Cobrand module use the COBRAND_FEATURES section of the config file.
* Move ResponsePriority admin to HTML::FormHandler.Matthew Somerville2019-06-07-28/+15
|
* Add role to users from admin user list page.Matthew Somerville2019-05-28-0/+8
|
* User import allowing roles.Matthew Somerville2019-05-28-0/+34
|
* Add role search to users page.Matthew Somerville2019-05-28-3/+21
|
* Include role permissions when fetching user permissions.Matthew Somerville2019-05-28-1/+8
|
* Add way to pick role for a user.Matthew Somerville2019-05-28-0/+29
|
* Add Role adding/editing/deleting admin.Matthew Somerville2019-05-28-0/+96
|
* Show field entries if error on add user formMatthew Somerville2019-05-28-0/+1
|
* Merge in upgraded Catalyst branch.Matthew Somerville2019-05-14-8/+8
|\
| * Update a number of packages.Matthew Somerville2019-05-13-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update: * Catalyst * Specify Catalyst::DispatchType::Regex explicitly * Remove Catalyst::Plugin::Unicode::Encoding * Catalyst::Plugin::SmartURI * Specify URI::SmartURI explicitly * Catalyst::Plugin::Static::Simple * CGI * Class::Load * DateTime * DateTime::TimeZone * DBD::Pg * DBIx::Class * DBIx::Class::EncodedColumn. * Email::Address. * Email::MIME * ExtUtils::MakeMaker * ExtUtils::ParseXS (for Params::Classify upgrade) * File::ChangeNotify * Image::Size * IO::Socket::SSL * local::lib * Moo * Moose (and some related others due to deprecations) * namespace::autoclean * Net::Server * Net::SSLeay * Number::Phone * Plack * Starman * Template * Test::PostgreSQL * Test::WWW::Mechanize::Catalyst * Text::CSV * YAML carton install was run on a wheezy box, the oldest that is supported, to make sure the required minimal vesions of core modules weren't removed from the snapshot. Cpanel::JSON::XS, Devel::GlobalDestruction::XS, and MooseX::NonMoose were then put back in the snapshot, in case another system needs them (e.g. system Perl on Mac looks for MooseX::NonMoose).
* | Prevent creation of two templates with same title.Matthew Somerville2019-05-07-0/+24
|/
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-4/+6
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-24/+24
|
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-8/+10
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Improve update display on admin report edit page.Matthew Somerville2018-11-26-1/+1
|
* add report_prefill user permissionStruan Donald2018-11-19-0/+1
| | | | | | | If set then when the user creates a new body report it will prefill the report title and description with some basic text. For mysociety/freshdesk#23
* add default_to_body permissionStruan Donald2018-11-19-0/+1
| | | | | | | If a user has this permission then the report_as dropdown will default to reporting as the body. For mysociety/freshdesk#23
* add report_mark_private permissionStruan Donald2018-11-12-0/+1
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* add alert editing to user edit page in adminStruan Donald2018-10-19-0/+58
| | | | disable, enable and delete for user alerts on user_edit page
* display alert count on admin report pageStruan Donald2018-10-17-0/+26
| | | | | | | Add a count of currently active alerts on new updates for a report to the admin page. Fixes #669
* [Oxfordshire] remove access to inspector toolStruan Donald2018-09-28-0/+19
|
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-0/+14
| | | | | | 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-0/+10
| | | | | 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.
* Enable editing of category group in adminDave Arter2018-06-26-1/+52
| | | | Fixes mysociety/fixmystreetforcouncils#275
* add a send login email button to user edit pageStruan Donald2018-06-25-0/+65
| | | | | | | | | 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
* Use correct created column in problem timeline.Matthew Somerville2018-06-13-0/+4
| | | | The User model now also has a created column.
* include automated field when editing contactsStruan Donald2018-06-11-0/+56
| | | | | | | | 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-2/+44
|
* Remove needless category mappings.Matthew Somerville2018-05-08-1/+0
| | | | | 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/+76
| | | | | | | | 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
* admin UI to configure fetch_all_problems Open311 optionStruan Donald2018-04-11-0/+39
| | | | | | 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.
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-0/+51
|
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+26
|
* Fix post-edit issues on admin report edit page.Matthew Somerville2018-03-02-0/+4
| | | | | 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.
* Don’t require SMS_AUTHENTICATION to view/edit user email/phone_verifiedDave Arter2018-02-07-0/+14
| | | | | | | Previously this would force phone_verified to false for all user edits, as well as forcing email_verified to true - which would be the wrong thing to do if the user had been created/verified via the ‘report as another user’ flow.
* Admin ability to remove user account details.Matthew Somerville2018-02-06-0/+16
|
* Add admin ability to log user out.Matthew Somerville2018-02-06-0/+10
|
* Split up admin test file into many separate files.Matthew Somerville2018-01-31-0/+2855