fix(frontend): add HTMX filter submission for sidebar radio buttons
Wrap sidebar time/type filters in a form with HTMX attributes so filter changes trigger partial page updates instead of full reload. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6d7e68ada1
commit
e18a54a41a
1 changed files with 5 additions and 2 deletions
|
|
@ -20,7 +20,10 @@
|
|||
{{end}}
|
||||
</nav>
|
||||
|
||||
<div class="sidebar-filters">
|
||||
<form method="GET" action="/search" class="sidebar-filters"
|
||||
hx-get="/search" hx-target="#results" hx-trigger="change" hx-swap="innerHTML">
|
||||
<input type="hidden" name="q" value="{{.Query | urlquery}}">
|
||||
<input type="hidden" name="category" value="{{.ActiveCategory}}">
|
||||
<div class="sidebar-filter-group">
|
||||
<div class="sidebar-filter-label">Time</div>
|
||||
{{range .TimeFilters}}
|
||||
|
|
@ -39,7 +42,7 @@
|
|||
</label>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</aside>
|
||||
|
||||
<!-- Center Column -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue