numerus/web/template/invoices
jordi fita mas d697b340e9 Remove scroll after update quote or invoice form
By default, when using hx-boost, HTMx adds the `show:top` modifier to
`hx-swap`.  This is actually the wanted behaviour in these cases,
because it means that you are following a link to a “different” page,
and it makes sense to start from the top.

However, for quote and invoice forms is a hindrance because you are
usually editing the bottom-most product, as new lines are appended,
therefore you are all the time having to scroll down to the line.
Every. Single. Time.

Here i reverted the show:top to just show:false to keep the scroll as
is.  I also added the show:bottom to the new product button, because
that way the window show entirely the new line.

I could not use `show🪟bottom`, however, despite appearing in the
documentation, because that, somehow, ended up doing the same as
`show🪟top`.  Not sure if a bug or something i did not understand.

Closes #58.
2023-07-04 19:55:58 +02:00
..
edit.gohtml Remove scroll after update quote or invoice form 2023-07-04 19:55:58 +02:00
index.gohtml Add total amount for quotes, invoices, and expenses tables 2023-06-20 11:33:28 +02:00
new.gohtml Remove scroll after update quote or invoice form 2023-07-04 19:55:58 +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