diff options
author | Dave Arter <davea@mysociety.org> | 2018-07-25 14:58:10 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-08-17 09:43:09 +0100 |
commit | a33ee5f5f9310efd3643d92529eae9c1907dc42d (patch) | |
tree | 4468bc069a6d497c3d2b96a1e0b6bd015d5fd722 | |
parent | a194c70e5f0cf12d2b6b90c35de89ef16100a127 (diff) |
[Buckinghamshire] Use smaller template override for problem confirm message
3 files changed, 6 insertions, 44 deletions
diff --git a/templates/web/base/tokens/confirm_problem.html b/templates/web/base/tokens/confirm_problem.html index 57ba42a54..f74517c8a 100644 --- a/templates/web/base/tokens/confirm_problem.html +++ b/templates/web/base/tokens/confirm_problem.html @@ -6,8 +6,12 @@ [% IF c.cobrand.is_council %] [% IF c.cobrand.owns_problem( report ) %] + [% TRY %] + [% INCLUDE 'tokens/_confirm_problem_council_id.html' %] + [% CATCH file %] <h2>Your issue is on its way to the council.</h2> <p>Your reference for this report is [% report.id %], please quote it in any enquiries.</p> + [% END %] [% ELSE %] <h2>Thank you for your report.</h2> <p> diff --git a/templates/web/buckinghamshire/tokens/_confirm_problem_council_id.html b/templates/web/buckinghamshire/tokens/_confirm_problem_council_id.html new file mode 100644 index 000000000..458e37299 --- /dev/null +++ b/templates/web/buckinghamshire/tokens/_confirm_problem_council_id.html @@ -0,0 +1,2 @@ +<h2>Your issue is on its way to the council.</h2> +<p>You will receive an email with a reference number for this report soon, please quote it in any enquiries.</p> diff --git a/templates/web/buckinghamshire/tokens/confirm_problem.html b/templates/web/buckinghamshire/tokens/confirm_problem.html deleted file mode 100644 index 9b3063b5e..000000000 --- a/templates/web/buckinghamshire/tokens/confirm_problem.html +++ /dev/null @@ -1,44 +0,0 @@ -[% INCLUDE 'header.html', bodyclass = 'fullwidthpage', title = loc('Confirmation') %] - -<div class="confirmation-header"> - - <h1><a href="[% c.cobrand.base_url_for_report( report ) %][% report.url %]">[% report.title %]</a></h1> - - [% IF c.cobrand.is_council %] - [% IF c.cobrand.owns_problem( report ) %] - <h2>Your issue is on its way to the council.</h2> - <p>You will receive an email with a reference number for this report soon, please quote it in any enquiries.</p> - [% ELSE %] - <h2>Thank you for your report.</h2> - <p> - We don’t handle this type of problem, so have passed it on to: - </p> - <p> - <b>[% report.body %]</b> - </p> - <p> - You can follow this problem on <a href="[% c.cobrand.base_url_for_report( report ) %][% report.url %]">FixMyStreet.com</a>. - </p> - [% END %] - - [% ELSE %] - <h2>[% loc('Thank you for reporting this issue!') %]</h2> - [% IF report.bodies_str %] - <p>[% loc('It’s on its way to the council right now.') %]</p> - [% END %] - - [% END %] - -[% TRY %][% INCLUDE 'tokens/_extras_confirm.html' %][% CATCH file %][% END %] - -</div> - -[% INCLUDE - next_steps.html, - just_interacted = 1, - utm_content = 'problem confirmed', - share_url = c.cobrand.base_url_for_report(report) _ report.url, - twitter_comment = loc('I just reported a problem on @fixmystreet') -%] - -[% INCLUDE 'footer.html' %] |