aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Add user admin log page.Matthew Somerville2019-11-08-0/+32
|
* Store a moderation history on admin report edit.Matthew Somerville2019-11-08-1/+16
|
* Add admin log entry for more objects and things.Matthew Somerville2019-11-08-17/+21
| | | | | Namely templates, roles, bodies, categories, various user edits, and when using the inspect form and changing category.
* Ignore empty paragraphs in html_para.Matthew Somerville2019-11-08-1/+2
| | | | And do not generate them needlessly.
* Refactor user controller to use chained action.Matthew Somerville2019-11-08-9/+14
|
* Factor out admin reports code to own controller.Matthew Somerville2019-11-08-492/+514
|
* Factor out admin template code to own controller.Matthew Somerville2019-11-08-160/+176
|
* Fix password reset on 2FA accounts again.Matthew Somerville2019-11-05-2/+5
| | | | | | Just after fixing it, 3d593bc68 broke it again, because it took anyone who must have 2FA switched on to the must-have-2FA sign up flow, even if they already had 2FA set up.
* Merge branch 'password-expiry'Matthew Somerville2019-11-05-3/+45
|\
| * Add optional enforced password expiry.Matthew Somerville2019-11-04-2/+43
| |
| * Record time of password change.Matthew Somerville2019-11-04-1/+2
| |
* | Merge branch 'remove-extra-cat-heading'Matthew Somerville2019-10-31-12/+5
|\ \ | |/ |/|
| * Sort reporting categories in display order.Matthew Somerville2019-10-31-11/+4
| |
| * Do not output empty disable_form hash in ajax call.Matthew Somerville2019-10-29-1/+1
| |
* | Merge branch '2fa-improvements'Matthew Somerville2019-10-31-62/+85
|\ \
| * | If 2FA enforced, do it for an email login as well.Matthew Somerville2019-10-30-0/+31
| | |
| * | Fix password reset on 2FA accounts.Matthew Somerville2019-10-30-4/+21
| | |
| * | Allow enforcement of 2FA for staff users.Matthew Somerville2019-10-30-0/+6
| | |
| * | Require code to be entered when activating 2FA.Matthew Somerville2019-10-28-10/+24
| | |
| * | Allow non-superusers to store 2FA secrets.Matthew Somerville2019-10-28-5/+5
| | |
| * | Remove unused inspection required/reputation code.Matthew Somerville2019-10-28-45/+0
| |/
* / [Mobile] Make sure disable message findable by appMatthew Somerville2019-10-30-5/+17
|/ | | | | | | | | | The mobile app is looking at the old extra.datatype_description location rather than the new disable_form location for per-question disabling (it does look there for all-category disabling). So we need to make sure the JSON includes the message in the place where it will be looking. Note if an extra data question has two answers that disable the form and they have different messaging, the app will only take one of them.
* [BANES] Override category display name.Matthew Somerville2019-10-25-2/+3
|
* Allow cobrands to override category display.Matthew Somerville2019-10-25-1/+1
|
* Allow editing of category name.Matthew Somerville2019-10-25-1/+17
|
* Make contact edit note optional on staging sites.Matthew Somerville2019-10-25-1/+1
|
* Refactor admin body creation/editing together.Matthew Somerville2019-10-25-153/+154
|
* Generalise heatmap code to be under /dashboard.Matthew Somerville2019-10-15-19/+113
|
* Default dashboard users to cobrand they are on.Matthew Somerville2019-10-14-7/+12
|
* Refactor Reports controller a bit.Matthew Somerville2019-10-14-54/+75
| | | | | Split load_and_group_problems in two, split out category list/map setup, and factor out sort stash setting. No actual changes.
* [Oxfordshire] Remove defect type front end code.Matthew Somerville2019-10-10-14/+0
|
* [Oxfordshire] Remove raise defect/inspected code.Matthew Somerville2019-10-10-8/+0
|
* [Oxfordshire] Remove unused Exor RDI code.Matthew Somerville2019-10-10-81/+0
|
* Respect cobrand updates_restriction when dealing with commentsDave Arter2019-10-07-10/+10
| | | | Allows limiting display, moderation and photos of comments.
*-. Merge branches 'use-right-asset-name', 'deadlock', ↵Matthew Somerville2019-10-04-33/+39
|\ \ | | | | | | | | | '2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
| | * Rename variable that shows missing body message.Matthew Somerville2019-10-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the around page includes a copy of the reporting form (when JS is available), it runs the same templating code that the reporting form does. Part of this code compares the bodies and bodies_to_list stash variables to see whether it needs to display a message about missing body information. Previously both variables were empty on the around page itself, so no message would be shown, but a new bodies variable was added in 4668f81a, which meant the message was now output in the HTML and shown briefly when the map was clicked - until updated by a server response). Rename the variable so that this no longer occurs.
| | * Do not generate map data unless needed.Matthew Somerville2019-10-03-3/+2
| |/ |/| | | | | This saves e.g. a call to Gaze on successful report submission.
| * Restructured admin category extra-metadata-formZarino Zappia2019-10-03-29/+36
|/ | | | | | | | | * 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>
* 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-2/+7
|\ \
| * | [Zurich] Treat closed/fixed the same in filter.Matthew Somerville2019-09-30-1/+2
| | |
| * | [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.
* | improve report new munge namesStruan Donald2019-09-27-1/+1
| |
* | [IsleOfWight] limit filter category on national around pageStruan Donald2019-09-27-3/+4
| | | | | | | | | | | | | | | | | | Only display non triage categories on this because getting the category expansion to work if we use the triage categories isn't in place and may not be. This is because when we get the list of reports using /around/ajax there's no way to know which body it is for so we don't know how to expand a triage category to the list of 'child' categories. So, just display the non triage ones for now.
* | 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] correctly filter categories on report pageStruan Donald2019-09-27-1/+4
| | | | | | | | | | | | | | | | If it's a standard user only display the Triage category list but if one of these is selected then look up all the categories in that group and use those to select the reports to display. It it's a staff user then ignore the Triage categories.
* | [IsleOfWight] correctly handle triage categories on reports/around pagesStruan Donald2019-09-27-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add in some cobrand handlers to make sure a) the appropriate categories are show to staff/non staff users on the around and reports pages b) that those categories are correctly expanded to the child categories when using the category filter to search reports This is because non staff users should only be shown Isle of Wight categories with a send_method of 'Triage', however once those reports are triaged the post triage categories need to be included in any filtering
* | [IsleOfWight] add an admin interface to triage reportsStruan Donald2019-09-27-2/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.