aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand
Commit message (Collapse)AuthorAgeLines
* [UK] Deal with setup where county may be missing.Matthew Somerville2019-04-29-2/+5
| | | | | | | Currently, Dorset Council and BCP Council are bodies linked with the relevant areas of the now-gone district councils; this means there is no body linked with the area of the old county council, which causes an error.
* [BANES] Turn on new duplicate suggesting.Matthew Somerville2019-04-23-0/+2
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-0/+8
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-1/+0
|
* [Northamptonshire] do not display district/borough reportsStruan Donald2019-03-28-0/+7
|
* [Northamptonshire] Update report_sent_confirmation_email.Matthew Somerville2019-03-27-1/+1
|
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-4/+4
|
* [Northamptonshire] only display NCC categories on cobrandStruan Donald2019-03-26-0/+5
|
* [Northamptonshire] cobrand config, template and css changesStruan Donald2019-03-25-0/+85
| | | | | Co-authored-by: Zarino Zappia <zarino@mysociety.org> Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* Allow cobrand customisation of privacy URLStruan Donald2019-03-25-0/+8
| | | | | Add a privacy_policy_url function to the cobrand and use that in the templates instead of hard coding /privacy
* [Buckinghamshire] Send drainage reports via email as well as Open311Dave Arter2019-03-20-4/+10
| | | | Fixes mysociety/fixmystreet-commercial#1306
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-1/+8
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-1/+8
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* | [Oxfordshire] always send easting/northing over open311Struan Donald2019-03-12-4/+2
| | | | | | | | | | Remove the config that stopped us sending easting/northing if the user had not clicked the map.
* | Let all cobrands treat hidden_fields as hidden.Matthew Somerville2019-03-12-2/+2
| |
* | [UK Councils] Make sure server_set as appropriate.Matthew Somerville2019-03-12-0/+23
|/ | | | | After the change in 1cff2a0e, we need to make sure this is set so that the relevant fields are not shown in the front end.
* [Bromley] Reduce heatmap default time to one monthMatthew Somerville2019-03-08-1/+1
|
* Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-0/+17
|\
| * Use relative report links where possible.Matthew Somerville2019-03-05-0/+17
| | | | | | | | | | | | | | | | | | | | On some UK council cobrands, some reports listed might not have been sent to that council, so links to those must go to the national site. However, using absolute URLs for all these reports means that sometimes you change domain when you don't need to (eg. if you’re on osm.fixmystreet.com or an aliased version of the site), which can cause confusion. State when we’re happy to use a relative link (ie. web-facing report links, not emails, or share links) and do that when we can.
* | Merge branch '374-default-show-name'Matthew Somerville2019-03-05-9/+1
|\ \
| * | Default to unchecked for default_show_name.Matthew Somerville2019-03-04-9/+1
| |/
* / Add DateRange class.Matthew Somerville2019-03-04-17/+8
|/ | | | | This simplifies the places where a date range is used; it also makes Dashboard date parsing more flexible.
* [Bromley] Better date parsing on heatmap.Matthew Somerville2019-02-28-3/+14
| | | | IE11 does not support input type=date, so we will get whatever they write.
* [Oxfordshire] Limit appears to be lower than 30.Matthew Somerville2019-02-28-2/+2
|
* [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-0/+131
|
* Merge remote-tracking branch 'origin/issues/commercial/1229-duplicate-reporting'Matthew Somerville2019-02-25-0/+2
|\
| * [Borsetshire] Enable duplicate suggestionZarino Zappia2019-02-25-0/+2
| |
* | [Buckinghamshire] Add contributed_by to CSV exportMatthew Somerville2019-02-25-0/+33
|/
* [FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)Joe Siltberg2019-02-25-0/+7
| | | | Fixes #1957
* [Bromley] Allow subcategory attachment to users.Matthew Somerville2019-02-18-0/+56
|
* [Bromley] Store service_sub_code as subcategory.Matthew Somerville2019-02-15-0/+9
|
* [Buckinghamshire] Ignore updates in extra process.Matthew Somerville2019-02-15-0/+2
|
* [Oxfordshire] Limit appears to be lower than 70.Matthew Somerville2019-02-08-2/+2
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-28/+1
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* No need to pass c to cobrand function.Matthew Somerville2019-02-01-1/+2
|
* [UK Councils] Get topic when reporting abuse.Matthew Somerville2019-01-31-20/+20
|
* [Buckinghamshire] Stop road-placement being sent.Matthew Somerville2019-01-25-0/+11
| | | | | The server doesn't need to know about it, it was only for us to pick the appropriate body.
* [Buckinghamshire] Question for on-road flytipping.Matthew Somerville2019-01-23-0/+52
| | | | | | | | This adds a question to check whether a flytipping report concerns flytipping on a road or not. Client-side, it is asked when a road is selected and destination adjusted according to the answer; server side it uses the answer to direct any both-tier submissions (from e.g. non-JavaScript or phone app).
* [Open311] Refactor cobrand specific code.Matthew Somerville2019-01-23-0/+47
|
* [Oxfordshire] length checking for names, emails and phone NosStruan Donald2019-01-16-0/+12
| | | | | | | Add in validation to check names, email and phone numbers don't exceed maximum lengths permitted by HIAMS. Fixes mysociety/fixmystreet-commercial#1244
* Remove any use of `my $x if $foo`.Matthew Somerville2019-01-14-1/+1
| | | | | | | | As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our` modified with a statement modifier conditional or loop construct (for example, `my $x if ...`) is undefined. The value of the `my` variable may be `undef`, any previously assigned value, or possibly anything else."
* [Buckinghamshire] add report description filteringStruan Donald2019-01-04-0/+17
| | | | | | Add a method to do some basic filtering of emails and phone numbers from report descriptions. To be used on reports pulled in from Confirm as a first pass at removing personal information.
* [Buckinghamshire] Get topic when reporting abuse.Matthew Somerville2018-12-19-0/+19
|
* [fixmystreet.com] Get topic when reporting abuse.Matthew Somerville2018-12-19-3/+0
|
* [Zurich] Add 2019/2020 extra holidays.Matthew Somerville2018-12-11-0/+2
|
* [UK] server side cobrand specific validationStruan Donald2018-11-26-7/+43
| | | | | | `report_check_for_errors` now fetches the cobrand for the current report and, if present, runs `report_validation` method from cobrand over the report.
* add report_prefill user permissionStruan Donald2018-11-19-0/+1
| | | | | | | If set then when the user creates a new body report it will prefill the report title and description with some basic text. For mysociety/freshdesk#23
* add default_to_body permissionStruan Donald2018-11-19-0/+2
| | | | | | | If a user has this permission then the report_as dropdown will default to reporting as the body. For mysociety/freshdesk#23
* add report_mark_private permissionStruan Donald2018-11-12-0/+1
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* [FixaMinGata] Show staff user name as well as body name in updatesJoe Siltberg2018-11-05-0/+4
|