aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/default/around/around_index.html13
-rw-r--r--templates/web/default/around/postcode_form.html13
-rw-r--r--templates/web/default/index.html11
-rw-r--r--templates/web/emptyhomes/index.html2
-rw-r--r--templates/web/fixmystreet/around/around_index.html20
-rw-r--r--templates/web/fixmystreet/around/postcode_form.html27
-rw-r--r--templates/web/fixmystreet/index.html26
7 files changed, 45 insertions, 67 deletions
diff --git a/templates/web/default/around/around_index.html b/templates/web/default/around/around_index.html
index aca7b3f4b..f58d13d80 100644
--- a/templates/web/default/around/around_index.html
+++ b/templates/web/default/around/around_index.html
@@ -7,18 +7,7 @@
# '/report/new' and the partial hidden field is added to the form.
%]
-[%
- question = c.cobrand.enter_postcode_text();
-%]
-
-<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
- <label for="pc">[% question %]:</label>&nbsp;<input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200">&nbsp;<input type="submit" value="[% loc('Go') %]" id="submit">
-
-[% IF partial_token %]
- <input type="hidden" name="partial" value="[% partial_token.token %]">
-[% END %]
-
-</form>
+[% INCLUDE 'around/postcode_form.html' %]
[% IF location_error %]
<p class="error">[% location_error %]</p>
diff --git a/templates/web/default/around/postcode_form.html b/templates/web/default/around/postcode_form.html
new file mode 100644
index 000000000..935995cfe
--- /dev/null
+++ b/templates/web/default/around/postcode_form.html
@@ -0,0 +1,13 @@
+[%
+ question = c.cobrand.enter_postcode_text || loc('Enter a nearby street name and area');
+%]
+
+<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
+ <label for="pc">[% question %]:</label>
+ <span><input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200">
+ <input type="submit" value="[% loc('Go') %]" id="submit">
+ </span>
+ [% IF partial_token %]
+ <input type="hidden" name="partial" value="[% partial_token.token %]">
+ [% END %]
+</form>
diff --git a/templates/web/default/index.html b/templates/web/default/index.html
index 8f755d4d5..b3ca36e8c 100644
--- a/templates/web/default/index.html
+++ b/templates/web/default/index.html
@@ -21,16 +21,7 @@
[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %]
-[%
- question = c.cobrand.enter_postcode_text();
-%]
-
-<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
- <label for="pc">[% question %]:</label>
- <span><input type="text" name="pc" value="" id="pc" size="10" maxlength="200">
- <input type="submit" value="[% loc('Go') %]" id="submit">
- </span>
-</form>
+[% INCLUDE 'around/postcode_form.html' %]
<div id="front_intro">
diff --git a/templates/web/emptyhomes/index.html b/templates/web/emptyhomes/index.html
index 60bdee70c..be6a14b95 100644
--- a/templates/web/emptyhomes/index.html
+++ b/templates/web/emptyhomes/index.html
@@ -38,7 +38,7 @@ The TV series launched a campaign for action and while this is running, our <a h
</p>
[%
- question = c.cobrand.enter_postcode_text();
+ question = loc("Enter a nearby GB postcode, or street name and area");
%]
<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
diff --git a/templates/web/fixmystreet/around/around_index.html b/templates/web/fixmystreet/around/around_index.html
index 74e0d9ac7..c547b7ba9 100644
--- a/templates/web/fixmystreet/around/around_index.html
+++ b/templates/web/fixmystreet/around/around_index.html
@@ -1,22 +1,4 @@
-[% pre_container_extra = BLOCK %]
-<div id="front-main"><div id="front-main-container">
-[%
- question = c.cobrand.enter_postcode_text();
-%]
-<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
- <label for="pc">[% question %]:</label>
- <div>
- <input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200">
- <input type="submit" value="[% loc('Go') %]" id="submit">
- </div>
-
- [% IF partial_token %]
- <input type="hidden" name="partial" value="[% partial_token.token %]">
- [% END %]
-</form>
-</div></div>
-[% END %]
-
+[% pre_container_extra = INCLUDE 'around/postcode_form.html' %]
[% INCLUDE 'header.html', title = loc('Reporting a problem'), bodyclass = 'frontpage fullwidthpage' %]
[%
diff --git a/templates/web/fixmystreet/around/postcode_form.html b/templates/web/fixmystreet/around/postcode_form.html
new file mode 100644
index 000000000..a98959d3a
--- /dev/null
+++ b/templates/web/fixmystreet/around/postcode_form.html
@@ -0,0 +1,27 @@
+<div id="front-main">
+ <div id="front-main-container">
+ [% IF c.cobrand.moniker == 'bromley' %]
+ <h1 class="main mob-only">Reporting a problem in Bromley&rsquo;s streets or parks</h1>
+ [% ELSE %]
+ <h1>[% loc('Report, view, or discuss local problems') %]</h1>
+ <h2>[% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]</h2>
+ [% END %]
+
+ [%
+ question = c.cobrand.enter_postcode_text || loc('Enter a nearby street name and area');
+ %]
+
+ <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
+ <label for="pc">[% question %]:</label>
+ <div>
+ <input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200" placeholder="[% tprintf(loc('e.g. ‘%s’ or ‘%s’'), c.cobrand.example_places) %]">
+ <input type="submit" value="[% loc('Go') %]" id="submit">
+ </div>
+
+ [% IF partial_token %]
+ <input type="hidden" name="partial" value="[% partial_token.token %]">
+ [% END %]
+
+ </form>
+ </div>
+</div>
diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html
index ac25a1b9a..5849977fc 100644
--- a/templates/web/fixmystreet/index.html
+++ b/templates/web/fixmystreet/index.html
@@ -16,31 +16,7 @@ Modernizr.load({
</script>
[% END %]
-[% pre_container_extra = BLOCK %]
-<div id="front-main">
- <div id="front-main-container">
- [% IF c.cobrand.moniker == 'bromley' %]
- <h1 class="main mob-only">Reporting a problem in Bromley&rsquo;s streets or parks</h1>
- [% ELSE %]
- <h1>[% loc('Report, view, or discuss local problems') %]</h1>
- <h2>[% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]</h2>
- [% END %]
-
- [%
- question = c.cobrand.enter_postcode_text();
- %]
-
- <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
- <label for="pc">[% question %]:</label>
- <div>
- <input type="text" name="pc" value="" id="pc" size="10" maxlength="200" placeholder="[% tprintf(loc('e.g. ‘%s’ or ‘%s’'), c.cobrand.example_places) %]">
- <input type="submit" value="[% loc('Go') %]" id="submit">
- </div>
- </form>
- </div>
-</div>
-[% END %]
-
+[% pre_container_extra = INCLUDE 'around/postcode_form.html' %]
[% INCLUDE 'header.html', title = '', bodyclass = 'frontpage fullwidthpage' %]
[% IF error %]