aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
...
* 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
* Defect type changes must be after category change.Matthew Somerville2018-06-22-0/+26
| | | | | As with priorities, they depend upon the category and so must be looked up after that has been updated.
* Allow inspector to unset priority.Matthew Somerville2018-06-22-0/+20
|
* send unresponsive details back with category extrasStruan Donald2018-06-20-0/+6
| | | | | | | This allows the mobile app to explicitly detect when a body is unresponsive and display the category_extra text. For mysociety/fixmystreet-mobile#266
* Merge branch 'issues/commercial/1064-main-road-br5'Matthew Somerville2018-06-20-3/+0
|\
| * [Bromley] Deal with partial postcodes in search.Matthew Somerville2018-06-20-3/+0
| |
* | cobrand hook to deny access to pagesStruan Donald2018-06-19-0/+15
|/ | | | | | | Add a check in the root controller `auto` to a cobrand hook that denies access if it returns true. This goes here so that cobrands and users are set up, which is not the case for `check_login_required`. Used to do things like deny site access unless the user is a superuser.
* Merge branch 'issues/commercial/1038-bromley-tfl-direct'Matthew Somerville2018-06-14-3/+35
|\
| * [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+32
| |
| * If single_body_only set, skip contact body check.Matthew Somerville2018-06-14-3/+3
| | | | | | | | This assumes the SendReport code will deal with the issue.
* | 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
* error on bad update ids passed to contact formStruan Donald2018-06-05-6/+60
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-2/+58
|\
| * Add admin tickbox to close report to updates.Matthew Somerville2018-05-23-2/+44
| |
| * Refactor out some session functions.Matthew Somerville2018-05-23-0/+14
| |
* | Escape data attributes in template.Matthew Somerville2018-05-23-39/+28
|/ | | | | | This fixes a bug whereby a double quote in an item would not be JSON-escaped due to being HTML-escaped first, meaning it would not parse as JSON on the client.
* ajax endpoint to return closest address.Struan Donald2018-05-09-1/+3
| | | | | | | | /ajax/closest will return ajax with details of the closest address to the lat/lon passed in from the Bing geocoder. Tidy up find_closest() to use overloaded string rather than passing in whether you want a string or not.
* Add small test of category groups.Matthew Somerville2018-05-08-0/+16
|
* 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.
* Merge branch 'collideoscope-anew'Matthew Somerville2018-05-02-1/+9
|\
| * Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+9
| | | | | | | | | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* | 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
* Merge branch 'collideoscope-anew'Matthew Somerville2018-04-26-0/+4
|\
| * Have only one bodies_to_list variable.Matthew Somerville2018-04-23-0/+1
| |
| * Add a cobrand hook to table dashboard generation.Matthew Somerville2018-04-23-0/+3
| | | | | | | | This allows a cobrand to categorise the reports however it wishes.
* | Sign up inspector, not creator, on inspection.Matthew Somerville2018-04-25-2/+2
|/
* Merge branch 'mapit-proxy-api-key'Matthew Somerville2018-04-13-0/+13
|\
| * Provide API key to MapIt proxy if present.Matthew Somerville2018-04-12-0/+13
| |
* | Don’t send alert emails when archiving old reportsDave Arter2018-04-12-0/+35
|/
* 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 link to edit current report in adminDave Arter2018-04-11-0/+25
| | | | | | | I find myself wanting to view the current report in the admin all the time - this commit adds a link to the top of the inspector column that goes right there. Only visible for superusers and staff users with permission to actually view the admin.
* Add test for update name in HTML part of email.Matthew Somerville2018-04-04-3/+2
|
* limit problem body to single body if requiredStruan Donald2018-04-03-2/+23
| | | | | | Add a single_body_only form value to reports that contains the name of the only body to send the problem to. If the name doesn't match any of the valid bodies for the report then send to all.
* test for multiple bodies for one contactStruan Donald2018-04-03-0/+108
| | | | | test to check creating a new report for a category for which there are multiple bodies
* fix timezone problems with offline inspector commentsStruan Donald2018-03-29-1/+5
| | | | | | | Comments added offline by an inspector set the time in JavaScript using a UTC epoch. We need to add the FMS timezone to this so it's in the timezone the database expects for timestamps otherwise it's incorrect when we fetch it back out
* Don’t show empty ‘provide extra detail’ sectionDave Arter2018-03-29-0/+46
| | | | | | Hides the empty “Help <council> resolve your problem quicker” section of the new report form if report metas for the selected category are all hidden fields.
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-0/+51
|
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-14/+73
| | | | | We do need to store them, so that the sending knows which fields are being requested, but we do not want them output to the client at all.
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+26
|
* Store contributed-as data.Matthew Somerville2018-03-20-1/+30
| | | | | Store if the report/update was created by someone using the contributed-as dropdown, and use that information to perhaps not send report-sent emails.
* Merge branch '2023-bad-open311-dates'Matthew Somerville2018-03-16-0/+13
|\
| * Truncate dates in Open311 output to the second.Matthew Somerville2018-03-15-0/+13
| | | | | | | | This fixes #2023 by removing the comma.
* | Fix JSON-encoding crash on /report/ajaxDave Arter2018-03-15-0/+6
| |
* | Display ‘pick an option’ placeholder for report extra dropdownsDave Arter2018-03-14-2/+3
| |
* | Merge branch 'issues/commercial/987-zurich-csv-updates'Matthew Somerville2018-03-14-100/+0
|\ \
| * | [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-100/+0
| |/ | | | | | | | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* / [Warwickshire] Add archive script data.Matthew Somerville2018-03-14-5/+11
|/ | | | Add an update with each report closure.
* 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.