diff options
Diffstat (limited to 'templates/web/default')
-rw-r--r-- | templates/web/default/around/around_index.html | 13 | ||||
-rw-r--r-- | templates/web/default/around/postcode_form.html | 13 | ||||
-rw-r--r-- | templates/web/default/index.html | 11 |
3 files changed, 15 insertions, 22 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> <input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200"> <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"> |