aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport
Commit message (Collapse)AuthorAgeLines
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-8/+7
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-7/+7
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-10/+7
| | | | Command line scripts don't need a full blown app, just database.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-1/+2
|
* [Zurich] Updated email templatesMatthew Somerville2015-10-06-0/+10
| | | | | | | - submit-external-wish.txt includes a link with report's coordinates, template values are interpolated Conflicts: perllib/FixMyStreet/SendReport/Zurich.pm
* [Zurich] admin workflow changes available statesHakim Cassimally2015-10-06-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | See mysociety/FixMyStreet-Commercial#690 - external_message for Extern/Wunsch states - as per PDF mockups, the "public response" field is now editable from more states, namely: - Ruckmeldung ausstehend - Extern - Zustandigkeit unbekannt - Wunsch - Nicht kontaktierbar - Unsichtbar - test fixes NB: slight hack to reorder Zurich report_display tests As these remove 'investigating' from hidden_states, these break tests for default cobrand (the FMS::App code expects to be called once on request start, not multiple times within one test) - Not contactable button and tests for this and the similar `send_back` functionality (previously untested). NB: Unsure why we need to specify form_number=2 just for these submits, but test won't find the buttons otherwise. - Make sure SDMs' "time_spent" figure is recorded. (See mysociety/FixMyStreet-Commercial#718)
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-1/+6
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* [fixmystreet.com] Remove unused Barnet code.Matthew Somerville2015-09-03-208/+0
|
* Test for DMARC when sending report email.Matthew Somerville2015-08-19-0/+7
|
* Merge branch 'issues/968-refusing-councils'Matthew Somerville2015-07-28-0/+7
|\
| * [fixmystreet.com] Unresponsive bodies page/warningMatthew Somerville2015-07-28-0/+7
| | | | | | | | | | | | | | | | | | Add a special category email address used to show an unresponsive message and page when trying to report in that category. Add a "Refused" send method for setting a whole body to be unresponsive and show the message immediately, not on category selection. Factor out category template, and put at top where needed.
* | [fixmystreet.com] Remove Essex/Oxfordshire code.Matthew Somerville2015-07-22-27/+0
| | | | | | | | This is no longer used.
* | Set external_id for Greenwich Open311 based on bodies_str, not cobrandDave Arter2015-07-20-1/+2
|/ | | | | Problems for Greenwich reported via the fixmystreet cobrand weren't having the external_id included in the Open311 request and were failing.
* [Greenwich] Include external_id when submitting Open311 reportsDave Arter2015-06-30-2/+2
|
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-10/+8
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-37/+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-113/+0
|
* [Oxfordshire] Update email template for cobrand.Matthew Somerville2015-01-21-1/+4
| | | | And update HTTPS link.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-0/+1
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-29/+21
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* 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.
* Remove liberror-perl and libsoap-lite-perl.Matthew Somerville2014-11-05-5/+5
| | | | | | 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.
* Open311 tweaks to get round-tripping workingHakim Cassimally2014-10-16-2/+8
| | | | | If https://github.com/mysociety/fixmystreet/pull/792 is accepted then this should be rewritten in terms of that.
* refactor repeat code into get_email_templateHakim Cassimally2014-08-14-6/+2
|
* Add no-op sending method.Matthew Somerville2014-03-22-0/+12
| | | | | This simply always skips reports for this body, in case you need to suspend reports there. Fixes #507.
* Change default email indentation to none.Matthew Somerville2014-03-17-1/+0
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* Send staging reports to reporter, not contact address.Matthew Somerville2014-01-30-1/+1
| | | | Fixes #653.
* change email sender to handle multiple emails per contactStruan Donald2013-10-28-3/+13
| | | | | splits emails on comma WIP
* Use name from problem in Bromley Open311 extra paramsStruan Donald2013-08-19-1/+1
| | | | | In order to match the way we get the name for the standard Open311 params as changed in b3e8d60
* Fixes to module installation.Matthew Somerville2013-07-26-1/+1
| | | | | | | * Upgrade ExtUtils::MakeMaker, and remove old workaround. * DIME::Tools won't install without --force (needed by SOAP::Lite in travis). * Remove SOAP::WSDL from cpanfile, as it won't install and nothing needs it apart from Barnet (UK specific).
* Consolidate sending backoff for different types of sender.Matthew Somerville2013-05-02-45/+0
|
* Don't print on London failure every time.Matthew Somerville2013-04-29-1/+0
|
* Merge branch 'zurich'Matthew Somerville2013-03-14-1/+14
|\ | | | | | | | | | | | | | | | | Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
| * Reports to third party have from email of division/category.Matthew Somerville2013-03-11-1/+14
| |
* | Warnfix a string comparison, as might not be numeric.Matthew Somerville2013-03-04-1/+1
|/
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-21-5/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | (locale ignored, will rerun .po extraction after to get all changes.) Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po templates/web/fixmystreet/report/banner.html templates/web/zurich/faq/faq-de-ch.html
| * Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-1/+1
| | | | | | | | database.
| * Allow email indent to be a cobrand parameter.Matthew Somerville2013-02-11-0/+1
| |
| * Fix body name in external assignment email, missing %s in translation, ↵Matthew Somerville2013-02-07-4/+6
| | | | | | | | associated tests (fix a28).
* | Couple of fixes to enable EmptyHomes to send reports again.Matthew Somerville2013-02-13-1/+1
| |
* | Include extra address in council email.Matthew Somerville2013-02-13-1/+6
|/
* Add a basic FMB test.Matthew Somerville2013-02-04-1/+11
|
* Remove all special body handling in order to move FMB to use bodies properly.Matthew Somerville2013-02-04-13/+0
|
* Missed some council references.Matthew Somerville2013-02-04-2/+2
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-44/+116
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Add some email checking to Zurich test.Matthew Somerville2013-01-31-1/+1
| |
| * If personal details tickbox ticked, use template that includes them.Matthew Somerville2013-01-18-0/+3
| |
| * Split the 'send reports' bit of STAGING_SITE to its own config variable, so ↵Matthew Somerville2013-01-16-1/+1
| | | | | | | | you can have a dev site that sends reports like normal.
| * Store Zurich external body in external_body rather than changing bodies_str.Matthew Somerville2013-01-15-0/+2
| |
| * Zurich email alerts.Matthew Somerville2013-01-11-1/+59
| |