Added persistence to the search form when on search page
This commit is contained in:
parent
dd8940893f
commit
a85e563a0f
2 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<.sidebar />
|
<.sidebar />
|
||||||
|
|
||||||
<div class="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden">
|
<div class="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden">
|
||||||
<.header />
|
<.header params={@conn.params} />
|
||||||
<main>
|
<main>
|
||||||
<div class="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
|
<div class="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
|
||||||
<.flash_group flash={@flash} />
|
<.flash_group flash={@flash} />
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="q"
|
name="q"
|
||||||
|
value={@params["q"]}
|
||||||
placeholder="Type to search..."
|
placeholder="Type to search..."
|
||||||
class="w-full bg-transparent pl-9 pr-4 border-0 focus:ring-0 focus:outline-none xl:w-125"
|
class="w-full bg-transparent pl-9 pr-4 border-0 focus:ring-0 focus:outline-none xl:w-125"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue