aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* [Oxfordshire] Update email template for cobrand.Matthew Somerville2015-01-21-1/+4
| | | | And update HTTPS link.
* Rename 'body_edit' admin endpoint to 'body'.Matthew Somerville2015-01-20-6/+4
|
* Add admin navigation link to Configuration page.Matthew Somerville2015-01-20-2/+2
|
* Merge branch 'remove-need-for-site-title'Matthew Somerville2015-01-19-28/+6
|\
| * Move site_title function to site-name web templateMatthew Somerville2015-01-19-28/+6
| | | | | | | | | | | | | | This matches the email template behaviour, and makes it much easier to override without requiring a cobrand package file. Fixes #979.
* | Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-8/+2
| | | | | | | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* | Use env in shebang lines, and remove unneeded onesMatthew Somerville2015-01-19-44/+1
| |
* | Rename test-wrapper to run-tests.Matthew Somerville2015-01-19-1/+1
| | | | | | | | As that's what it does; and use it in Travis.
* | Tidy up of bin directory.Matthew Somerville2015-01-19-6/+0
|/ | | | | Remove some unneeded scripts, move others to cobrand-specific directories.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-53/+62
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Use HTTPS OpenStreetMap tiles.Matthew Somerville2015-01-09-4/+4
|
* [EastSussex] disable questionnairesHakim Cassimally2015-01-09-0/+4
| | | | at ESCC request today
* [Harrogate] update email for live deploymentHakim Cassimally2015-01-08-1/+1
|
* [Harrogate] wordings and stylesHakim Cassimally2015-01-08-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | - auth and intro pages - wording of around page - Styling work with Mike - FAQ and footer tweaks https://github.com/mysociety/FixMyStreet-Commercial/issues/654 https://github.com/mysociety/FixMyStreet-Commercial/issues/655 - Extra spacing https://github.com/mysociety/FixMyStreet-Commercial/issues/656 - Width of footer (override auto -> 100%) - style and logo tweaks - Logo/header same height on all pages (inc mappage) - Content spacing tweaks - Correct "Harrogate district" wording https://github.com/mysociety/FixMyStreet-Commercial/issues/658 - Add extra disclaimer about reports fwd'd to NYCC - push fms_pan_zoom down with css!important (alternative is to use JS as Hart does, or possibly to fix this so doesn't require !important) - add privacy section (Copies part of text on main page, this should perhaps be factored out.) - Set bodyclass for change_password Sets a bodyclass that's unused outwith harrogate cobrand, so should be safe.
* [Harrogate] custom form fieldsHakim Cassimally2015-01-08-23/+180
| | | | | | | | | | | | | | Requires previous (generic) commit to prevent information only categories (e.g. Dead animals message) from displaying a spurious textbox. Also support for sending these custom fields by email: Requires a hook in RS::Problem method, as by default, only a restricted number of hard-coded fields are send in the email. (And the template language is pseudo-PHP so we can't simply pass in the whole data-structure.)
* [Harrogate] basic cobrandHakim Cassimally2015-01-08-0/+89
|
* [Bromley] fix BR5 and BR6 geocoding issuesHakim Cassimally2014-12-29-0/+18
| | | | | | | | | fixes #850 by adding appropriate postcodes to fix some issues reported by council. Unsure why, but one of these (Kelsey Hill) seemed to require different ordering than others: is this a Bing oddity, or am I doing something wrong?
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-24/+22
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* Add a script to always test on a clean db/config.Hakim Cassimally2014-12-12-0/+94
| | | | Fixes #786.
* By default, use area-based alerts.Matthew Somerville2014-12-12-11/+31
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Add Open311 i18n test, and add utf8 pragma.Matthew Somerville2014-12-10-0/+1
| | | | Also remove some unused variables.
* Set DefaultLocale appropriately when language set.Matthew Somerville2014-12-10-7/+8
|
* Fix encoding of signature in emails.Matthew Somerville2014-12-10-0/+2
| | | | | This text was being imported encoded, which led to double-encoding when used in templates. Fixes #960 and #961.
* Pass cobrand into send_email_cron when sending SendReport emailsSteven Day2014-12-09-1/+3
| | | | | | | | | | | | | | Without this, email sending within a cobrand will get the right main email template (submit.txt) for the email - because it uses the cobrand inside get_template - but it doesn't use the cobrand for things like the email signature, because you have to pass it into send_email_cron manually to make it cobrand-aware. This probably hasn't been noticed before because most cobrands are called Something FixMyStreet, but Collideoscope is different and hence it caused a problem there. Closes mysociety/FixMyStreet-Commercial#621.
* Only have jurisdiction_id in request if present.Matthew Somerville2014-11-26-7/+7
| | | | | | So don't request '...services.xml?jurisdiction_id=' as that can lead to an error from an Open311 server that expects either no parameter at all or a stated jurisdiction_id.
* Better error if Open311 returns nil service list.Matthew Somerville2014-11-21-8/+10
| | | | | | | | If an Open311 server responded with e.g. '<services></services>', you got a strange hash error as the code treated it as one undef service. Spot this at the same point we check anything was returned. Also remove a couple of warnings due to lc of a maybe-undef variable.
* [FiksGataMi] Update cobrand to current design.Matthew Somerville2014-11-19-16/+0
|
* Tidy up reporting sidebar notes and privacy.Matthew Somerville2014-11-19-8/+9
| | | | For #344 and #935.
* Show logged in message as success, not error.Matthew Somerville2014-11-18-3/+4
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* Only show text on /reports if appropriate.Matthew Somerville2014-11-14-5/+9
| | | | | Only show "select..." if more than one body, and only mention greyed out lines if there are any. Fixes #869.
* Remove unused variable.Matthew Somerville2014-11-07-1/+0
| | | | | Also, s///r isn't present in 5.10, and FixMyStreet should still install on squeeze.
* Remove liberror-perl and libsoap-lite-perl.Matthew Somerville2014-11-05-6/+7
| | | | | | Try and save other people the potential pain of installing SOAP::Lite; only UK FixMyStreet and Zurich geocoder use it, so set it as an optional feature in the cpanfile instead.
* Category should be escaped in RSS feeds.Matthew Somerville2014-10-24-1/+1
| | | | In case it contains an ampersand or somesuch.
* Allow filtering by category on All Reports page.Matthew Somerville2014-10-24-0/+6
| | | | If you know to change the URL, anyway, for now.
* [fixmystreet.com] Experiment, no pins by default.Matthew Somerville2014-10-17-10/+6
| | | | | | | | This changes the default flow to show no pins and a message about reporting, with the second tab displaying existing problems (and showing map pins). Those existing problems are the ones that would currently be on "problems on the map" followed by those currently on "problems nearby".
* [fixmystreet.com] Remove login content experiment.Matthew Somerville2014-10-17-9/+1
| | | | This gave no conclusive results, which was interesting.
* [Warwickshire]. PopulateServiceList deletion tweakHakim Cassimally2014-10-16-4/+15
| | | | | | as WCC is (during beta) mixed email (manually updated) and Open311, override the behaviour to delete contacts not returned by service list, to ignore ones that look like email addresses.
* [Warwickshire] Integration bits during/after visitHakim Cassimally2014-10-16-34/+71
| | | | | | | - Tweaks required to get things working in WCC environment - update Open311 to onsite changes - updated Open311 parameters after WCC's Bentley and County Highways workshop. - ... including ce_cpr_id
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-0/+1
| | | | | Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
* Open311 tweaks to get round-tripping workingHakim Cassimally2014-10-16-3/+10
| | | | | If https://github.com/mysociety/fixmystreet/pull/792 is accepted then this should be rewritten in terms of that.
* Open311. Remove extraneous 'jurisdiction' parameterHakim Cassimally2014-10-16-1/+0
| | | | | | | This parameter was added in 3eb93cea4acd5f9b76efdc0910466363a0b9b445 and is superfluous (as jurisdiction*_id* is the correct parameter, and is already sent.) That commit mentions only api_key so understand this wrong parameter is an artefact.
* Open311 Warwick (Exor) IntegrationHakim Cassimally2014-10-16-13/+576
| | | | | | | | | | | | | | | | | | | | | | | ::Integration::Warwick subclasses ::Integration::Exor refactor request_class and new_request Exor service Warwickshire updates retrieval, with datetimes stubbing out of Oracle constants, for local testing We also edit FMS's core PopulateServiceList routine to hide system fields from FMS: Bromley/Warwickshire send metadata in their services/FOO.xml advising that you can pass, e.g. attributes[easting]. FMS by default shows all of these to the user to fill in, however we don't *want* the user to supply these, rather they are added by the cobrand. Bromley had an exception for this (keyed by $body->areas->id). We write this more generally for Warwickshire too, keying instead by $body->name (as this is far less likely to be overridden for installs using global or custom Mapit's)
* Open311 Role for accepting default config fileHakim Cassimally2014-10-16-0/+30
| | | | | | | | See also MooX::ConfigFromFile, but that's underdocumented and seems overengineered -- may be worth implementing if requirements become more complex however. (See also Config::Any, which is well worth doing in future, using YAML only reflects current usage in FMS though.)
* Open311 Endpoint mySociety extensions roleHakim Cassimally2014-10-16-3/+284
| | | | | | | | | | | | | | * Get Service Request Updates This requires a new object ::Service::Request::Update, which of course is not part of standard spec. So, in order to make the core not too contaminated by : * the endpoint should instantiate ::Service::Request::mySociety objects which know about updates * have added a learn_additional_types callback from Schema to Endpoint, so that core doesn't need to know about /open311/service_request_update * (but ::Spark knows about the exception for updates... meh, but is 1-line)
* Open311 EndpointHakim Cassimally2014-10-16-0/+1439
| | | | | | | | | | | | | | | | | | | | | Subsystems include * ::Spark encoding conventions for xml/json * ::Schema using Rx to validate form of inputs and outputs, including validation for, e.g., dates and CSV as part of Open311 Handles following paths: * Open311 attributes for Service Definition http://wiki.open311.org/GeoReport_v2#GET_Service_Definition * POST service request * GET Service Requests * GET Service Request Objects: * ::Service * ::Service::Request
* [Warwickshire] cobrand workDave Arter2014-10-16-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First Warwickshire styling - imported WCC's header and footer files - Use Warwickshire colours for page elements - Include FMS elements in header - Use correct Warwickshire colours on map - Use full-screen map on desktop. - Improve display of homepage elements - Ensure correct classes are added to body tag - Make sure site header has correct height on front page - Tidy-up of unused header content and wrappers - Improve display of map - Position map beneath other elements Improve map display - Take some CSS from Warwickshire styles to ensure its applied - Fix container widths on map page - Make sure map wrapper is the correct width - Add style overrides to match Warwickshire.gov.uk - Ensure map controls are visible Nav and mobile styling - Make sure sticky sidebar nav is usable - Improve mobile front page - Ensure map is full-screen on mobile - Improve front page display on mobile - Fix map display on desktop - Fix Warwickshire and FMS nav on mobile - Add viewport meta tag for mobile devices - Tighten up vertical spacing on front page - Fix header height on tablet size screens - Set pan/zoom position in CSS, not JS Styling tweaks - correct styling of nav for wider screens (previous hidden by media query) - Add draft Warwickshire FAQ - Fixes https://github.com/mysociety/FixMyStreet-Commercial/issues/611 - Warwickshire. remove all reports link as requested. - see https://github.com/mysociety/FixMyStreet-Commercial/issues/609 - Update WCC footer - see https://github.com/mysociety/FixMyStreet-Commercial/issues/597 Bring WCC css locally, and override - Override for https://github.com/mysociety/FixMyStreet-Commercial/issues/612 - favicon https://github.com/mysociety/FixMyStreet-Commercial/issues/616 - update contact details - custom FAQ - fix padding on mobile https://github.com/mysociety/FixMyStreet-Commercial/issues/617
* Merge branch 'issues/commercial/603/generic-problems-clause-for-two-tier'Hakim Cassimally2014-10-16-21/+9
|\
| * UK. Generic problems_clause for two-tier councilsHakim Cassimally2014-10-10-21/+9
| | | | | | | | | | | | Replace copy-pasted problems_cause declarations in Hart, Oxfordshire, and East Sussex with a generic override in UKCouncils.pm (as a bonus also overrides Stevenage)
* | Paginate admin search results.Matthew Somerville2014-10-13-22/+22
|/
* ESCC. bodies_clause specialisationHakim Cassimally2014-10-10-0/+8
| | | | | patch for https://github.com/mysociety/FixMyStreet-Commercial/issues/603 more generic fix to follow