aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/UK.pm
Commit message (Collapse)AuthorAgeLines
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-7/+3
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* [UK] Hide usrn/asset_id Open311 fields.Matthew Somerville2016-11-11-0/+5
|
* Allow searching for reports with ref: prefix in postcode fieldDave Arter2016-08-22-0/+4
| | | | | | | | | Searches the `id` and `external_id` fields. This takes you directly to the report if only a single report matches, otherwise a disambiguation page is shown. For mysociety/fixmystreetforcouncils#16
* Include link back to originating cobrand on fms.com reportsDave Arter2016-07-08-1/+57
| | | | | | | | | When viewing a report on FMS.com whose recipient council has a FMS cobrand, turns the council name into a link to view the same report on that council's cobranded site. Includes methods cribbed from Hakim's Open311 refactor branch from commit 47daa02420a4f5a4264c31efcf2a2e8611c2f23e.
* Cope with a '/' in body name in body slug.Matthew Somerville2016-04-20-1/+1
| | | | Fixes #574.
* Rename process_extras to process_open311_extras.Matthew Somerville2016-03-08-1/+1
| | | | | It is currently only used for processing extra fields (the list, not the metadata hash) which is really only of relevance to Open311.
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-0/+1
| | | | | | 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.
* Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-0/+33
| | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-3/+3
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-9/+0
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-1/+0
|
* Tidy up cobrand template inheritance.Matthew Somerville2014-07-08-5/+0
| | | | | Most cobrands can just inherit from the Default function, with only those needing an exception specified.
* Ipswich/St Edmundsbury roads handled by Suffolk.Matthew Somerville2014-03-21-6/+0
|
* Redirect away from incorrect council pages on council sites.Matthew Somerville2013-05-21-0/+1
|
* Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-3/+5
| | | | than one body.
* Migrate Reports.pm to use bodies, not areas.Matthew Somerville2012-12-15-29/+20
|
* Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-6/+6
|
* Update reporting to use bodies.Matthew Somerville2012-12-15-7/+7
|
* Convert report sending code to use bodies rather than areas/councils.Matthew Somerville2012-12-15-2/+5
|
* Allow external_body optionally to be a lookup on /reports.Matthew Somerville2012-11-22-1/+1
|
* Some fixes for when warnings are on during test run.Matthew Somerville2012-11-09-1/+1
|
* Add auto-location to alert page (fixes #23).Matthew Somerville2012-10-12-1/+0
|
* Merge branch 'fmb-read-only'Dave Whiteland2012-10-03-13/+5
|\ | | | | | | | | | | | | Conflicts: db/schema.sql perllib/FixMyStreet/DB/Result/Contact.pm perllib/FixMyStreet/DB/Result/Problem.pm
| * we now return a hash from get_council_senderStruan Donald2012-09-28-3/+3
| |
| * allow endpoints to be configured at a category levelStruan Donald2012-08-29-10/+2
| | | | | | | | | | default cobrand now checks for endpoint configuration and only extra fallbacks are in UK cobrand
* | Switch to using mapit as it has nearest postcode functionality now. And ↵Matthew Somerville2012-08-28-2/+2
|/ | | | isn't down.
* Allow the MapIt types to be given in config.Matthew Somerville2012-08-17-3/+3
|
* Use same admin filter function on /reports to deal with old generation areas ↵Matthew Somerville2012-08-16-0/+9
| | | | that shouldn't be shown (fixes #312).
* Add NI sender, for handling cross-council road reports.Matthew Somerville2012-07-20-1/+1
|
* Add LGD area type to list of valid area types.Matthew Somerville2012-07-20-1/+1
|
* Remove any Northern Ireland specific code.Matthew Somerville2012-07-20-6/+2
|
* Remove remaining UK specific code from Default cobrand. Fixes #186.Matthew Somerville2012-07-19-0/+188
|
* Move default cobrand to new design.Matthew Somerville2012-07-13-0/+5
| | | | | | | | Due to old cobrands, this involves the subclasses implementing the web templates dir to ignore what the default is doing. A vaguely garish yet pleasing colour scheme has been chosen so that the site is both usable and suggests you may want to change it.
* Move UK example places out of default cobrand.Matthew Somerville2012-07-13-0/+4
|
* Make default front page form text non-GB specific.Matthew Somerville2012-07-13-0/+5
|
* Add Nominatim-based geocoding service (fixes #183).Matthew Somerville2012-07-13-1/+2
|
* Remove various UK specific code out of Default cobrand into UK one.Matthew Somerville2012-07-13-0/+131