diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-21 11:01:46 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-21 11:01:46 +0100 |
commit | 62ba3756efd59ec2d39b07b5b0ccd109da355d08 (patch) | |
tree | 4a5c93bfe5601f45875285298d34804fc813f955 | |
parent | 349b9f813f07da61ca117f49d1a3746979dffac8 (diff) |
add header and footer to questionnaire success pages
-rw-r--r-- | t/app/controller/questionnaire.t | 1 | ||||
-rw-r--r-- | templates/web/default/questionnaire/completed.html | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t index a245be343..e56734bfc 100644 --- a/t/app/controller/questionnaire.t +++ b/t/app/controller/questionnaire.t @@ -212,6 +212,7 @@ foreach my $test ( $another = 1 if $test->{fields}{another} && $test->{fields}{another} eq 'Yes'; # Check the right HTML page has been returned + $mech->content_like( qr/<title>[^<]*Questionnaire/m ); $mech->content_contains( 'glad to hear it’s been fixed' ) if $result eq 'fixed'; $mech->content_contains( 'get some more information about the status of your problem' ) diff --git a/templates/web/default/questionnaire/completed.html b/templates/web/default/questionnaire/completed.html index 4a6419ccb..3762b25d0 100644 --- a/templates/web/default/questionnaire/completed.html +++ b/templates/web/default/questionnaire/completed.html @@ -1,3 +1,7 @@ +[% + INCLUDE 'header.html', title = loc('Questionnaire') +%] + [% advert_outcome = 1 %] [% IF been_fixed == 'Unknown' %] @@ -26,3 +30,4 @@ why not <a href="http://www.pledgebank.com/new">make and publicise a pledge</a>? [% display_crosssell_advert( problem.user.email, problem.name, 'council', problem.council ) %] [% END %] +[% INCLUDE 'footer.html' %] |