numerus/web/template/products
jordi fita mas 992bbf32a9 Toggle filters forms
I tried this already when i started adding filters, but i tried to use
AlpineJS for that, and could not because it would reset the context each
time i submitted the filters, due to HTMx replacing the whole content.

I realized that the only thing i need is some “flag” to show and hide
the form with CSS.  I do not even need AlpineJS for that, but i used it
anyway because then i can use the x-cloak thing to hidde the toggle
button for users with JavaScript disabled.

Similarly, the body by default has that “flag” set in the markup, and is
removed when AlpineJS is initialized, thus if JavaScript is disabled the
filters form is shown nevertheless.
2023-05-24 12:13:09 +02:00
..
edit.gohtml Improve the CSS and general design 2023-05-23 23:13:21 +02:00
index.gohtml Toggle filters forms 2023-05-24 12:13:09 +02:00
new.gohtml Improve the CSS and general design 2023-05-23 23:13:21 +02:00
search.gohtml Add keyboard controls for product search 2023-04-28 00:06:48 +02:00