aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* Include areas in query param for inspector post-login redirect to all reportsDave Arter2019-12-09-0/+68
| | | | | Performs a proper redirect instead of detaching to /my/inspector_redirect so any request params from sign-in (e.g. password!) aren't carried through.
* Group categories on response template edit page, if cobrand allowsDave Arter2019-12-09-0/+45
|
* [UK Councils] Ensure response templates owned by other bodies aren’t visibleDave Arter2019-12-09-0/+65
|
* Switch to default-escaped in templates.Matthew Somerville2019-12-09-1/+1
| | | | | | | This means any variable used in a template is automatically HTML-escaped, unless it is marked as safe either in code by using a SafeString, or in the template with the `mark_safe` function or the `safe` filter.
* [Peterborough] add title length restrictionStruan Donald2019-12-03-1/+27
| | | | Fixes mysociety/fixmystreet-freshdesk#102
* Merge branch 'qr-code-generator'Matthew Somerville2019-11-25-1/+0
|\
| * Switch to internal QR code generator.Matthew Somerville2019-11-23-1/+0
| |
* | [Oxfordshire] re-enable inspector permissionsStruan Donald2019-11-22-27/+0
|/ | | | | Re-enable the inspector permissions that were disabled at a cobrand level
* Rotate session ID after successful login.Matthew Somerville2019-11-22-12/+11
|
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-198/+190
|
* Remove cached photos before updating db field.Matthew Somerville2019-11-18-13/+34
| | | | | If the photo field is updated first, then the cache removal doesn't think there are any photos to remove.
* Merge branch 'issues/freshdesk/98-staff-ignore-emergency-message'Struan Donald2019-11-15-0/+51
|\
| * allow staff to submit in disabled categoriesStruan Donald2019-11-15-0/+51
| | | | | | | | | | | | | | If a user belongs to a body override the disabled form check upon submission as mostly staff users can submit in those categories. Fixes mysociety/fixmystreet-freshdesk#98
* | Add cobrand-specific XSL to RSS feeds.Matthew Somerville2019-11-15-0/+17
|/
* Add user admin log page.Matthew Somerville2019-11-08-5/+54
|
* Store a moderation history on admin report edit.Matthew Somerville2019-11-08-0/+7
|
* Add admin log entry for more objects and things.Matthew Somerville2019-11-08-1/+1
| | | | | Namely templates, roles, bodies, categories, various user edits, and when using the inspect form and changing category.
* Factor out admin template code to own controller.Matthew Somerville2019-11-08-2/+0
|
* Fix password reset on 2FA accounts again.Matthew Somerville2019-11-05-0/+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.
* Add optional enforced password expiry.Matthew Somerville2019-11-04-0/+28
|
* Record time of password change.Matthew Somerville2019-11-04-1/+3
|
* Merge branch '2fa-improvements'Matthew Somerville2019-10-31-63/+203
|\
| * If 2FA enforced, do it for an email login as well.Matthew Somerville2019-10-30-0/+34
| |
| * Fix password reset on 2FA accounts.Matthew Somerville2019-10-30-0/+23
| |
| * [UK] Mandate 2FA on superusers.Matthew Somerville2019-10-30-7/+13
| |
| * Allow enforcement of 2FA for staff users.Matthew Somerville2019-10-30-15/+111
| |
| * Require code to be entered when activating 2FA.Matthew Somerville2019-10-28-6/+15
| |
| * Allow non-superusers to store 2FA secrets.Matthew Somerville2019-10-28-4/+9
| |
| * Remove unused inspection required/reputation code.Matthew Somerville2019-10-28-35/+0
| |
* | Fix some tests not running offline.Matthew Somerville2019-10-28-4/+6
|/
* Allow editing of category name.Matthew Somerville2019-10-25-1/+16
|
* Make contact edit note optional on staging sites.Matthew Somerville2019-10-25-1/+1
|
* [Westminster] Test warnfixes.Matthew Somerville2019-10-14-4/+5
|
* Test warnfix on confirmed comments lacking time.Matthew Somerville2019-10-14-7/+7
|
* [Oxfordshire] Remove defect type front end code.Matthew Somerville2019-10-10-27/+0
|
* [Oxfordshire] Remove raise defect/inspected code.Matthew Somerville2019-10-10-15/+1
|
*---. Merge branches 'use-right-asset-name', 'deadlock', ↵Matthew Somerville2019-10-04-124/+128
|\ \ \ | | | | | | | | | | | | '2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
| | | * Rename variable that shows missing body message.Matthew Somerville2019-10-03-0/+12
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Restructured admin category extra-metadata-formZarino Zappia2019-10-03-66/+56
| |/ |/| | | | | | | | | | | | | | | * 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>
| * Per-test file email addresses.Matthew Somerville2019-10-03-58/+60
|/
* Merge branch '2469-improve-admin-category-form'Matthew Somerville2019-09-30-4/+21
|\
| * Add top disable-form field to admin category form.Matthew Somerville2019-09-30-0/+18
| |
| * Rejig top-level part of admin category form.Matthew Somerville2019-09-30-4/+3
| | | | | | | | Co-Authored-By: Zarino Zappia <mail@zarino.co.uk>
* | Merge branch 'zurich-staging'Matthew Somerville2019-09-30-2/+2
|\ \
| * | [Zurich] Allow external body to link to a categoryMatthew Somerville2019-09-30-2/+2
| |/
* | [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-2/+1
| | | | | | | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* | 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.
* | [IsleOfWhite] make sure category_extras uses correct nameStruan Donald2019-09-27-0/+2
|/
* Improve user flow when JavaScript is not availableMatthew Somerville2019-09-05-0/+47
| | | | | | | This improves the reporting journey to only ask for category, and then category extra questions if appropriate, first, so that if the choice would lead to the form being disabled, this can be shown immediately.