aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* 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/+52
|\
| * 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.
| * Factor out contains_or_lacks test function.Matthew Somerville2016-09-29-0/+10
| |
* | Include CORS cross-origin header in RSS output.Matthew Somerville2016-09-27-0/+1
| |
* | Update user reputation when inspecting reportDave Arter2016-09-23-0/+15
| |
* | Add UI for managing category reputation thresholdDave Arter2016-09-23-0/+3
| |
* | Send reports immediately from users with enough reputationDave Arter2016-09-23-1/+8
| |
* | Add 'extra' field to User modelDave Arter2016-09-23-6/+14
|/
* 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
* Use shared Template base for all templates.Matthew Somerville2016-09-20-95/+132
| | | | | | Reduce some duplicated code, and as a side effect gives HTML emails our internal html_para filter, allowing single line returns in contact form submissions.
* Merge branch 'issues/forcouncils/7-custom-open311-attributes'Matthew Somerville2016-09-20-36/+50
|\
| * 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.
| * Include stash in render_fragment calls.Matthew Somerville2016-09-20-2/+1
| |
* | Merge remote-tracking branch ↵Matthew Somerville2016-09-20-3/+3
|\ \ | | | | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'
| * | Organize report admin actions into single control.Zarino Zappia2016-09-20-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page).
* | | Merge branch '1529-cobrand-testing'Matthew Somerville2016-09-20-0/+8
|\ \ \
| * | | If running a dev site, skip some restrictions.Matthew Somerville2016-09-15-0/+8
| | | | | | | | | | | | | | | | This makes it easier to perform manual testing of cobrands.
* | | | Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-5/+61
| | | | | | | | | | | | | | | | | | | | 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-17/+15
| | | |
* | | | 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-5/+14
|
* Admin restrict report/user sections appropriately.Matthew Somerville2016-09-09-6/+10
|
* Admin flagged page for superusers only.Matthew Somerville2016-09-09-13/+12
| | | | 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-29/+18
|\
| * Improve display of category extra data in admin.Matthew Somerville2016-09-09-29/+18
| | | | | | | | Allow get_extra_metadata to return all the data with no argument.
* | Add manage screen for editing priority/category.Matthew Somerville2016-09-09-40/+65
|/ | | | | | | 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-84/+330
| | | | | | | 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-11/+27
| | | | | | | | | | | 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
* [Oxfordshire] Display confirmed reports as received by the CouncilDave Arter2016-09-08-0/+12
| | | | | | | | This introduces a new `is_council_with_case_management` flag for Cobrands, that, when active, considers any report that's been confirmed as having been received by the Council in question. See mysociety/fixmystreetforcouncils#65
* Simplify some permissions logic with extra helper methodDave Arter2016-09-08-6/+28
|
* Extend response templates to work across all cobrandsDave Arter2016-09-08-42/+153
| | | | | | | | | | | This builds on the response templates in the Zürich cobrand: - Allow response templates to be assigned to categories - Also adds a auto_response flag, which will be used to automatically create updates when reports are made. - Include response templates select box on update form For mysociety/fixmystreetforcouncils#31
* Fetch MapQuest images via HTTPS rather than HTTPJon Kristensen2016-09-07-5/+5
|
* Merge branch 'issues/forcouncils/60-mapping-layer'Matthew Somerville2016-09-06-0/+2
|\
| * [Oxfordshire] Set map type to OSM.Matthew Somerville2016-09-06-0/+2
| |
* | Add inspector report detail viewDave Arter2016-09-06-9/+171
|/ | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* [Zurich] Call add_links filter correctlyDave Arter2016-09-06-2/+2
| | | | Fixes a bug with updates not being displayed correctly in the app.
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-41/+41
|
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-10/+20
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-3/+42
|