aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
...
* Better path for showing config git version.Matthew Somerville2016-12-02-1/+1
| | | | | | The default cobrand does not have a template directory, so the directory change to it was not working. Use the root directory of the repository instead.
* Update problem lastupdate column on inspect save.Matthew Somerville2016-12-02-0/+1
|
* [UK] Hide usrn/asset_id Open311 fields.Matthew Somerville2016-11-11-1/+1
|
* Add sort order options to list pages.Matthew Somerville2016-11-04-6/+36
| | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* Merge branch '1544-category-change-leave-update'Matthew Somerville2016-11-01-0/+11
|\
| * Leave a public update when admin changes category.Matthew Somerville2016-10-28-0/+11
| |
* | Add UI for assigning categories to a user in adminDave Arter2016-10-28-0/+27
|/ | | | | - A user can be assigned to any number of its body's categories - The category ids are stored as a list in the user's extra field
* Error if logged-in user visits admin without permission.Matthew Somerville2016-10-26-1/+4
| | | | | This is less confusing than redirecting to /auth and then to /my (as they're logged in). Fixes #1566.
* Show admin user edit errors.Matthew Somerville2016-10-26-4/+4
| | | | Fix title if error in adding user. Fixes #1510.
* Redirect to correct cobrand when category changed.Dave Arter2016-10-26-13/+11
|
* Resend report if changing category changes body.Dave Arter2016-10-26-3/+7
|
* Merge branch 'issues/forcouncils/67-mop-up'Matthew Somerville2016-10-24-0/+1
|\
| * Hide confirmed column if all categories confirmed.Matthew Somerville2016-10-24-0/+1
| |
* | Merge branch 'issues/forcouncils/98-inspect-straight'Matthew Somerville2016-10-24-19/+13
|\ \
| * | Have report page show inspect form if available.Matthew Somerville2016-10-24-19/+13
| |/
* / Add server-side /mapit proxy.Matthew Somerville2016-10-21-0/+11
|/
* Merge branch '1543-reports-page-fixes'Matthew Somerville2016-10-21-6/+39
|\
| * Update pagination when status/categories changed.Matthew Somerville2016-10-18-1/+9
| |
| * Add ajax pin fetching to reports/my pages.Matthew Somerville2016-10-14-6/+31
| | | | | | | | | | This matches the behaviour on /around, and prevents a refresh when changing the state or category filters.
* | Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-0/+1
|/ | | | Used internally to provide more details about when a priority is applicable.
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-29/+44
| | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* Determine location before possible redirect.Matthew Somerville2016-10-04-1/+1
| | | | | | If you changed the around filters on a URL with latitude/longitude, the co-ordinates were not passed through as determine_location needed to be called first.
* Don't show deleted bodies on /reports.Matthew Somerville2016-10-04-1/+3
|
* Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'Matthew Somerville2016-10-04-25/+42
|\
| * Handle extra field updates on report inspect pageDave Arter2016-10-04-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to make sure the extra metadata stored on a problem is kept in sync with the requirements of the category the report is in. Thus, if a report is moved to a category that collects extra metadata then the appropriate input fields should be shown so the inspector can enter the data. This commit shows the category extra HTML elements for every selectable category on the inspector page hiding those that don't apply to the selected category. JS is used to show/hide the extra fields when the category dropdown is changed. A consequence of the implementation is that any extra metadata from the original category is lost when the category is changed. Some thought was given to storing the old values elsewhere in the problem's extra field but I decided against this for the time being. For mysociety/fixmystreetforcouncils#45
| * Remove separate “Public update” form sectionZarino Zappia2016-10-04-1/+1
| | | | | | | | | | | | Inspectors can now tick the optional “Save with a public update” checkbox, to reveal the “Public update” textarea. This means there is no longer a need for two separate submit buttons.
| * Restructure Inspect form into logical sectionsZarino Zappia2016-10-04-1/+1
| | | | | | | | | | | | | | | | IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
* | Include CORS cross-origin header in RSS output.Matthew Somerville2016-09-27-0/+1
| |
* | Update user reputation when inspecting reportDave Arter2016-09-23-0/+7
| |
* | Add UI for managing category reputation thresholdDave Arter2016-09-23-0/+3
|/
* Some minor admin fixesDave Arter2016-09-23-1/+1
| | | | | - Superusers couldn't view response priorities due to invalid $c->forward call - Navigation to other areas of admin was broken on response priority admin pages
* Merge branch 'issues/forcouncils/7-custom-open311-attributes'Matthew Somerville2016-09-20-34/+49
|\
| * Only include relevant bodies upon category choice.Matthew Somerville2016-09-20-34/+38
| |
| * New section headings in report form.Zarino Zappia2016-09-20-1/+12
| | | | | | | | | | The report form is now split into "Public" and "Private" sections, with a third, matching heading, for the category_extras, if shown.
* | Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-2/+31
| | | | | | | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* | Remove from_body requirement from User::has_permission_toDave Arter2016-09-20-10/+10
| |
* | Don't reject email when editing Open311 contactsDave Arter2016-09-20-2/+6
| | | | | | | | Fixes (the first part of) #1138.
* | Fix admin user search for non-superusersDave Arter2016-09-16-9/+11
| |
* | [Zurich] Restore admin user edit functionalityDave Arter2016-09-16-2/+2
| | | | | | | | | | | | - Zurich users don't need permission to access user_edit page - from_body can be set to any body by Zurich admin users, not just their own - Don't show the area field on user_edit form
* | Allow contact form recipient override.Matthew Somerville2016-09-15-0/+4
|/
* Allow contact form to include extra fields.Matthew Somerville2016-09-13-0/+7
|
* Require inspector to provide update when instructing reportDave Arter2016-09-12-3/+26
| | | | | | | This adds an update field to the bottom of the inspect form, requiring the inspector to provide an update to be added to the report as it's sent. See mysociety/fixmystreetforcouncils#64
* Add new category_edit restriction for viewing body admin.Matthew Somerville2016-09-09-3/+9
|
* Admin flagged page for superusers only.Matthew Somerville2016-09-09-8/+7
| | | | Adapt code so that it could be opened up more in future.
* Better generic 403/404 pages.Matthew Somerville2016-09-09-11/+11
| | | | Stop IDs being shown on 404 pages, provide a nicer message on 403 pages.
* Merge branch 'issues/forcouncils/72-show-extra-data'Matthew Somerville2016-09-09-8/+1
|\
| * Improve display of category extra data in admin.Matthew Somerville2016-09-09-8/+1
| | | | | | | | Allow get_extra_metadata to return all the data with no argument.
* | Add manage screen for editing priority/category.Matthew Somerville2016-09-09-38/+47
|/ | | | | | | This is a cut-down version of the full inspect screen. We truncate the co-ordinates just in case (they should be anyway but e.g. the test report isn't).
* Refactor problem response priority into its own modelDave Arter2016-09-09-12/+110
| | | | | | | This moves the response priority values from a cobrand-specific method to a full DB model, and includes management screens in the admin for administering them. For mysociety/fixmystreetforcouncils#66
* Add ‘Inspection required’ field to categoriesDave Arter2016-09-09-2/+12
| | | | | | | | | | | Categories can now require reports to be marked as 'inspected' via the frontend before they're sent by send-reports. A side-effect here is that send-reports will perform an extra n queries for each report, where n is the number of bodies that report is being sent to, but hopefully in practice this won't matter as it's an offline cronjob. See mysociety/fixmystreetforcouncils#50