numerus/web/template
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
..
contacts Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
expenses Add total amount for quotes, invoices, and expenses tables 2023-06-20 11:33:28 +02:00
invoices Remove scroll after update quote or invoice form 2023-07-04 19:55:58 +02:00
products Use “Save” for all submit buttons of new/edit forms 2023-05-26 13:38:04 +02:00
quotes Remove scroll after update quote or invoice form 2023-07-04 19:55:58 +02:00
tags Add inline tag form for expenses 2023-05-08 12:58:54 +02:00
app.gohtml Change menu’s and profile icon 2023-07-02 19:49:03 +02:00
dashboard.gohtml Wrap filter buttons with <noscript> 2023-05-23 14:34:46 +02:00
form.gohtml Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
home.gohtml Internationalize and localize the home template 2023-06-16 10:58:40 +02:00
login.gohtml Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
main.gohtml Add the <title> element for the “main” boosted pages 2023-03-26 13:57:24 +02:00
modal.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
profile.gohtml Boost all breadcbrumb links 2023-04-02 16:10:13 +02:00
standalone.gohtml Allow editing invoice tags inline from the index table 2023-04-11 10:46:27 +02:00
tax-details.gohtml Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
web.gohtml Add custom function to get the current locale from templates 2023-01-31 15:45:51 +01:00