numerus/web/template/invoices
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
product-form.gohtml Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
products.gohtml Improve the CSS and general design 2023-05-23 23:13:21 +02:00
view.gohtml Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +02:00