aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-09-08 13:33:57 +0100
committerStruan Donald <struan@exo.org.uk>2017-09-11 10:43:01 +0100
commit288bb0e03f1f309d45a12d7fb05d90556a2d1dc9 (patch)
tree63ada976af04733e2acd019c706194f760346dff
parent2763fe574e180e47d867cc2bdd2bc8d75fb5ee34 (diff)
[Oxfordshire] use single template for response time text
-rw-r--r--templates/web/oxfordshire/_email_sent_extra.html10
-rw-r--r--templates/web/oxfordshire/_response_time.html14
-rw-r--r--templates/web/oxfordshire/report/_council_sent_info.html15
3 files changed, 16 insertions, 23 deletions
diff --git a/templates/web/oxfordshire/_email_sent_extra.html b/templates/web/oxfordshire/_email_sent_extra.html
index b49d1733c..5fdcd3bfd 100644
--- a/templates/web/oxfordshire/_email_sent_extra.html
+++ b/templates/web/oxfordshire/_email_sent_extra.html
@@ -1,9 +1 @@
-[% IF report AND c.cobrand.problem_response_days(report) > 0 %]
- <p>
- Problems in the
- [% report.category %]
- category are generally responded to within
- [% c.cobrand.problem_response_days(report) %]
- working days.
- </p>
-[% END %]
+[% INCLUDE '_response_time.html' problem=report %]
diff --git a/templates/web/oxfordshire/_response_time.html b/templates/web/oxfordshire/_response_time.html
new file mode 100644
index 000000000..c3cb5fdfa
--- /dev/null
+++ b/templates/web/oxfordshire/_response_time.html
@@ -0,0 +1,14 @@
+[% IF c.cobrand.problem_response_days(problem) == 'emergency' %]
+ <p>
+ Thank you for contacting Oxfordshire County Council [% problem.category %], unfortunately we are currently only available to respond to emergency situations which may have an impact on the health and safety of members of the public, these will be dealt with within a 24 hour period.<br />
+ Reported faults will continue to be registered on our management system and these will be tackled in coming months.
+ </p>
+[% ELSIF c.cobrand.problem_response_days(problem) > 0 %]
+ <p>
+ Problems in the
+ [% problem.category %]
+ category are generally responded to within
+ [% c.cobrand.problem_response_days(problem) %]
+ working days.
+ </p>
+[% END %]
diff --git a/templates/web/oxfordshire/report/_council_sent_info.html b/templates/web/oxfordshire/report/_council_sent_info.html
index 52b20a0af..5bc7949ff 100644
--- a/templates/web/oxfordshire/report/_council_sent_info.html
+++ b/templates/web/oxfordshire/report/_council_sent_info.html
@@ -10,20 +10,7 @@
</h3>
[% END %]
- [% IF c.cobrand.problem_response_days(problem) == 'emergency' %]
- <p>
- Thank you for contacting Oxfordshire County Council [% problem.category %], unfortunately we are currently only available to respond to emergency situations which may have an impact on the health and safety of members of the public, these will be dealt with within a 24 hour period.<br />
- Reported faults will continue to be registered on our management system and these will be tackled in coming months.
- </p>
- [% ELSIF c.cobrand.problem_response_days(problem) > 0 %]
- <p>
- Problems in the
- [% problem.category %]
- category are generally responded to within
- [% c.cobrand.problem_response_days(problem) %]
- working days.
- </p>
- [% END %]
+ [% INCLUDE '_response_time.html' %]
</div>
[% END %]