numerus/pkg
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
..
company.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
contacts.go Add validation for minimum length of contact’s name 2023-04-18 21:01:29 +02:00
db.go Properly register array and composite PostgreSQL types with pgtype 2023-02-20 11:42:21 +01:00
form.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
htmx.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
invoices.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
locale.go Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
logger.go Move source file to the root of pkg 2023-01-17 10:40:22 +01:00
login.go Replace default router with github.com/julienschmidt/httprouter 2023-02-03 12:30:56 +01:00
pgtypes.go Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
products.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
profile.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
template.go Allow editing invoice tags inline from the index table 2023-04-11 10:46:27 +02:00