Persist search and feed filter params

This commit is contained in:
Ondřej 2023-08-26 12:48:51 +02:00
parent ebbaaf7222
commit dd8c3337f0

View file

@ -15,6 +15,7 @@
name="search"
value="{{ search|e }}"
/>
<button class="button button-md" type="submit" value="Hledat">
Search
<svg class="w-4 fill-current" viewBox="0 0 24 24">
@ -23,24 +24,22 @@
></path>
</svg>
</button>
</form>
<button class="button-outline button-md" @click="document.querySelector('#feeds-dialog').showModal()">
<svg class="w-4 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 14L4 5V3H20V5L14 14V20L10 22V14Z"></path></svg>
Feeds
</button>
<button type="button" class="button-outline button-md" @click="document.querySelector('#feeds-dialog').showModal()">
<svg class="w-4 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 14L4 5V3H20V5L14 14V20L10 22V14Z"></path></svg>
Feeds
</button>
<dialog id="feeds-dialog" hx-boost="false" class="dialog">
<header class="flex justify-between mb-6 items-center">
<p>Filter by feed</p>
<form method="dialog">
<button formmethod="dialog" class="button-outline button-md">
</button>
</form>
</header>
<dialog id="feeds-dialog" hx-boost="false" class="dialog">
<header class="flex justify-between mb-6 items-center">
<p>Filter by feed</p>
<form method="dialog">
<button formmethod="dialog" class="button-outline button-md">
</button>
</form>
</header>
<form action="/" method="GET" id="feeds-filter">
<div class="columns-2 mb-6">
{% for feed in feeds %}
<label
@ -56,8 +55,8 @@
<button type="submit" class="button button-md">
Filter diffs
</button>
</form>
</dialog>
</dialog>
</form>
<label class="checkbox mx-2">
<input