numerus/web/template/quotes
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 Add HTTP controller and view to add quotes 2023-06-07 16:35:31 +02:00
products.gohtml Add HTTP controller and view to add quotes 2023-06-07 16:35:31 +02:00
view.gohtml Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00