mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 11:53:35 +01:00
Persist search and feed filter params
This commit is contained in:
parent
ebbaaf7222
commit
dd8c3337f0
1 changed files with 16 additions and 17 deletions
|
@ -15,6 +15,7 @@
|
||||||
name="search"
|
name="search"
|
||||||
value="{{ search|e }}"
|
value="{{ search|e }}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button class="button button-md" type="submit" value="Hledat">
|
<button class="button button-md" type="submit" value="Hledat">
|
||||||
Search
|
Search
|
||||||
<svg class="w-4 fill-current" viewBox="0 0 24 24">
|
<svg class="w-4 fill-current" viewBox="0 0 24 24">
|
||||||
|
@ -23,24 +24,22 @@
|
||||||
></path>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
|
||||||
|
|
||||||
<button class="button-outline button-md" @click="document.querySelector('#feeds-dialog').showModal()">
|
<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>
|
<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
|
Feeds
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<dialog id="feeds-dialog" hx-boost="false" class="dialog">
|
<dialog id="feeds-dialog" hx-boost="false" class="dialog">
|
||||||
<header class="flex justify-between mb-6 items-center">
|
<header class="flex justify-between mb-6 items-center">
|
||||||
<p>Filter by feed</p>
|
<p>Filter by feed</p>
|
||||||
<form method="dialog">
|
<form method="dialog">
|
||||||
<button formmethod="dialog" class="button-outline button-md">
|
<button formmethod="dialog" class="button-outline button-md">
|
||||||
✕
|
✕
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form action="/" method="GET" id="feeds-filter">
|
|
||||||
<div class="columns-2 mb-6">
|
<div class="columns-2 mb-6">
|
||||||
{% for feed in feeds %}
|
{% for feed in feeds %}
|
||||||
<label
|
<label
|
||||||
|
@ -56,8 +55,8 @@
|
||||||
<button type="submit" class="button button-md">
|
<button type="submit" class="button button-md">
|
||||||
Filter diffs
|
Filter diffs
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</dialog>
|
||||||
</dialog>
|
</form>
|
||||||
|
|
||||||
<label class="checkbox mx-2">
|
<label class="checkbox mx-2">
|
||||||
<input
|
<input
|
||||||
|
|
Loading…
Reference in a new issue