aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-11 12:51:11 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-17 11:13:34 +0100
commit450ee47f68caa8725e8866c879d9fabd3529c1a8 (patch)
treecdd14e43af795aa374039051ea4c743d3c8d4986 /perllib/FixMyStreet/App/Controller/Report
parent9bebe5261a3aee29c55e5e3d0bcf4c8dd561537b (diff)
Add way to see "Please check your email" pages.
This makes testing easier.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index e9332d852..de9f33105 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -106,6 +106,12 @@ sub report_new : Path : Args(0) {
# report_new but there's a few workflow differences as we only ever want
# to sent JSON back here
+sub report_new_test : Path('_test_') : Args(0) {
+ my ( $self, $c ) = @_;
+ $c->stash->{template} = 'email_sent.html';
+ $c->stash->{email_type} = $c->get_param('email_type');
+}
+
sub report_new_ajax : Path('mobile') : Args(0) {
my ( $self, $c ) = @_;