numerus/web/template/invoices
jordi fita mas 7d895fe5f9 Use HTMx to add product rows “inline” in the invoice form
I actually find more comfortable to select the product from the list
presented up until now, but this is mostly because i have very few
products and the list is not too long, so the idea is that with
JavaScript we will dynamically add an empty product row to the invoice
and then use the name field to search the product by name.

I have the feeling that i am doing something wrong because i ended up
with a lot of HTMx attribute for what i feel is not that much work,
but for now it will work.

I have added the `Is` field to `InputField` in order to include the `id`
attribute to the HTML element, because the HTMLAttributes are attached
to the `input`, not the `div`, and i felt like this one should also be
a custom element based on div, like all the others.

These is not yet any keyboard control to select the search results.

I am not happy with having the search of products in a different URL
than the index, specially since they use the exact same SQL query and
ProductFilter struct, but i did not know how else ask for a different
representation without resorting to the more complicated MIME types.
2023-04-24 02:00:38 +02:00
..
edit.gohtml Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
index.gohtml “Integrate” the tags’ condition into the input field 2023-04-16 19:01:11 +02:00
new.gohtml Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +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 Show the duplicate invoice form in a dialog 2023-04-04 14:39:55 +02:00
view.gohtml Use HX-Location instead of HX-Refresh when editing invoices 2023-04-05 10:29:03 +02:00