diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-18 09:49:31 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-08 11:38:12 +0000 |
commit | 7627d3f07ea5f3ddb0b1f645e50d3fb0a36e1cfb (patch) | |
tree | 442ed7e205e43b267f6d35bb1ec24b18874976a6 | |
parent | 27fe9940d3830b6a9d23c82aeca5a93975eee5c3 (diff) |
Factor out front page form examples.
-rw-r--r-- | templates/web/base/around/_postcode_form_examples.html | 1 | ||||
-rw-r--r-- | templates/web/base/around/postcode_form.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/base/around/_postcode_form_examples.html b/templates/web/base/around/_postcode_form_examples.html new file mode 100644 index 000000000..975d33927 --- /dev/null +++ b/templates/web/base/around/_postcode_form_examples.html @@ -0,0 +1 @@ +<p class="form-hint" id="pc-hint">[% tprintf(loc('e.g. ‘%s’ or ‘%s’'), c.cobrand.example_places) %]</p> diff --git a/templates/web/base/around/postcode_form.html b/templates/web/base/around/postcode_form.html index ac83d4bf4..7d0130018 100644 --- a/templates/web/base/around/postcode_form.html +++ b/templates/web/base/around/postcode_form.html @@ -10,7 +10,7 @@ <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm" class="js-geolocate"> <label for="pc">[% question %]:</label> - <p class="form-hint" id="pc-hint">[% tprintf(loc('e.g. ‘%s’ or ‘%s’'), c.cobrand.example_places) %]</p> + [% INCLUDE 'around/_postcode_form_examples.html' %] <div> <input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200" required aria-describedby="pc-hint"> [% INCLUDE 'around/_postcode_submit_button.html' attr='id="sub"' %] |