Shorten bus stop search placeholder
This commit is contained in:
parent
c3999d796d
commit
827435bd92
2 changed files with 3 additions and 2 deletions
|
|
@ -24,14 +24,14 @@
|
|||
<div id="sidebar-inner">
|
||||
<header class="mb-3">
|
||||
<h1 class="h5 mb-1">Find a UK bus stop code</h1>
|
||||
<p class="small text-muted mb-0">Search by postcode, street, place or ATCO code.</p>
|
||||
<p class="small text-muted mb-0">Search by postcode, street, place or ATCO code. Coordinates also work.</p>
|
||||
</header>
|
||||
|
||||
<form id="search-form" class="mb-2" role="search">
|
||||
<label for="search-input" class="visually-hidden">Location or ATCO code</label>
|
||||
<div class="input-group">
|
||||
<input id="search-input" class="form-control" type="search"
|
||||
placeholder="Postcode, place, ATCO code or lat, lon" autocomplete="off" required>
|
||||
placeholder="Postcode, place or ATCO code" autocomplete="off" required>
|
||||
<button class="btn btn-primary" type="submit">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -253,6 +253,7 @@ def test_index_contains_search_and_map(client: Any) -> None:
|
|||
response = client.get("/")
|
||||
assert response.status_code == 200
|
||||
assert b"Find a UK bus stop code" in response.data
|
||||
assert b'placeholder="Postcode, place or ATCO code"' in response.data
|
||||
assert b'id="search-input"' in response.data
|
||||
assert b'id="map"' in response.data
|
||||
assert b'href="/about"' in response.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue