aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report
Commit message (Collapse)AuthorAgeLines
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-6/+3
|
* Add shortlist buttons to report lists.Matthew Somerville2017-01-12-0/+8
| | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
* [UK] Hide usrn/asset_id Open311 fields.Matthew Somerville2016-11-11-1/+1
|
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-1/+4
| | | | | | 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.
* Handle extra field updates on report inspect pageDave Arter2016-10-04-23/+31
| | | | | | | | | | | | | | | | | | 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
* 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.
* | Remove from_body requirement from User::has_permission_toDave Arter2016-09-20-6/+6
|/
* 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-1/+1
|/ | | | | | | 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).
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-2/+2
|
* Get contribution state from server with map click.Matthew Somerville2016-08-19-0/+10
| | | | This makes sure the correct dropdown is shown.
* Remove unused category_extras_json code.Matthew Somerville2016-08-16-1/+0
|
* Remove some unused code/ database handle.Matthew Somerville2016-08-12-26/+1
|
* Feature to create report as body/other user.Zarino Zappia2016-08-10-11/+74
| | | | | | | | | | | | This allows users who have the correct permissions to add reports on behalf of the body or another user. We enable editing of the email box by default, so that if JavaScript isn't available, someone can still change the email for the 'another user' option. For mysociety/fixmystreetforcouncils#10 and mysociety/fixmystreetforcouncils#11
* Allow editing of category on admin report edit.Matthew Somerville2016-07-15-0/+1
| | | | This also updates the body column to match the category.
* Remove bit of unused/needed code.Matthew Somerville2016-07-15-24/+3
|
* Check extras for all retrieved contacts.Matthew Somerville2016-07-15-12/+12
|
* Refactor sending of problem confirmation emailDave Arter2016-07-08-32/+29
| | | | | | | | Replaced duplicate code blocks that are responsible for sending confirmation of problem email with a function. Should make it easier to do two-tier conditional messages later on. Also fixes a minor bug where the wrong confirmation email would be sent for reports from the mobile app to unresponsive councils.
* [Bristol] Only show Open311 categories on Bristol cobrandDave Arter2016-07-08-12/+3
| | | | | | | | | | | | This adds a new Cobrand::Default::categories_restriction method that can be used to limit what categories are available when making a new report on a per-cobrand basis. This is used by Cobrand::Bristol to only show Open311 categories when making a new report on fixmystreet.bristol.gov.uk but allowing all categories on FMS.com. Also removes the Hart::hidden_categories and uses the new categories_restriction method to achieve the same thing.
* Merge branch '360-change-email'Matthew Somerville2016-06-20-0/+3
|\
| * Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-0/+3
| |
* | Fix check for old-style parsed XML.Dave Arter2016-06-16-1/+1
| | | | | | | | | | It errored on new-style parsed XML, rather than let it through. Add a new category to the test that highlights this.
* | Improve template check for extra Open311 fields.Matthew Somerville2016-06-15-1/+0
| |
* | Tidy up Open311 XML handling.Matthew Somerville2016-06-15-2/+8
|/ | | | | Parse the XML in such a way other parts of the code do not have to worry about single-value folding or the like.
* Redirect correctly if filter used sans JavaScript.Matthew Somerville2016-06-08-2/+5
| | | | | It was being treated as a new report and showing errors, rather than showing you the same page with updated filters. Fixes #1422.
* Handle reports/updates by logged in abuse entries.Matthew Somerville2016-05-27-0/+10
|
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-50/+23
|\
| * Remove some unused cobrands.Matthew Somerville2016-04-20-50/+23
| |
* | Send unresponsive body data per category to app.Matthew Somerville2016-04-22-2/+11
| | | | | | | | | | | | The app doesn't currently use the unresponsive body data returned via /report/new/ajax, so make sure it's returned via the category look up it does make.
* | Add Twitter social login.Matthew Somerville2016-04-08-0/+4
|/
* [fixmystreet.com] Fix for two-tier unresponsive.Matthew Somerville2016-03-29-1/+3
| | | | | | Make sure the unresponsive message shows, if you're in a two-tier area and one of the areas is marked as unresponsive, for all the categories of that area.
* Set page stash variable even if map unused.Matthew Somerville2016-03-11-1/+1
| | | | | This variable can then be used by e.g. extra_name.html to know what form it is on.
* Add cobrand-specific custom reporting fields.Matthew Somerville2016-03-09-6/+9
| | | | | | This adds a new cobrand variable, report_form_extras, which contains a list of extra fields that will be saved in the 'extra' metadata of the report. Fields may optionally be marked as required.
* Rename process_extras to process_open311_extras.Matthew Somerville2016-03-08-4/+4
| | | | | It is currently only used for processing extra fields (the list, not the metadata hash) which is really only of relevance to Open311.
* If app user logged in, perform alert signup.Matthew Somerville2016-01-27-0/+1
| | | | Thanks to @jonkri for spotting.
* Add login by Facebook when updating.Matthew Somerville2016-01-22-38/+128
| | | | Makes the flow more like new reporting.
* Add login by Facebook when reporting.Matthew Somerville2016-01-22-45/+80
|
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-18/+6
| | | | | | Travis has Cpanel::JSON::XS preinstalled, which means that the build would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to version 3 which the snapshot did not contain.
* Remove most passing of Catalyst to PhotoSet.Matthew Somerville2016-01-12-1/+1
|
* Add multiple photo upload support.Zarino Zappia2015-12-16-11/+7
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* [Zurich] prevent invalid bodies_strHakim Cassimally2015-10-06-2/+17
| | | | | | | | See issue in mysociety/FixMyStreet-Commercial#663 with problems not appearing in the "Erfasst" filter. It looks like Zurich requires a single id in the `bodies_str` (like '4'), and may rely on the configuration of bodies/contacts in database to be perfect to avoid them becoming something like '4|47,48'.
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-1/+2
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* [Zurich] Vary confirmation email wording if address is confirmedHakim Cassimally2015-10-06-0/+3
| | | | See mysociety/FixMyStreet-Commercial#669
* Send altered confirmation email if not being sent.Matthew Somerville2015-09-28-1/+4
| | | | Fixes #1210.
* Add way to see "Please check your email" pages.Matthew Somerville2015-09-17-0/+6
| | | | This makes testing easier.
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-4/+5
|