aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Zurich.pm
Commit message (Collapse)AuthorAgeLines
* better error if category for report does not existStruan Donald2019-06-20-4/+1
| | | | | | It is possible that the category of a report no longer exists and in that case the Open311 send process was falling over. This checks that we've found a contact and if not sets the error and skips the report.
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-4/+4
| | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* Use only one templating system for emails.Matthew Somerville2016-05-25-2/+0
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-1/+1
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-3/+3
| | | | Command line scripts don't need a full blown app, just database.
* [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)
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-1/+1
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Reports to third party have from email of division/category.Matthew Somerville2013-03-11-1/+14
|
* Fix body name in external assignment email, missing %s in translation, ↵Matthew Somerville2013-02-07-4/+6
| | | | associated tests (fix a28).
* 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
|
* 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-0/+53