numerus/pkg
jordi fita mas a06bc3df58 Use slugs too to select invoice products without JavaScript
The product search returns a list of products using its slug as the
“external key”, because i do not want people seeing the id in links,
and the search product list is just a different rendering of the product
index table.

However, now i had two almost identical select queries for product,
one using the product_id and the other its slug, the former intended for
the form to select products using checkboxes—the one non-JavaScript
users see—and the latter for the product search.

Using the slug in both forms i can now simplify the code and have a
single query.
2023-04-26 13:50:02 +02:00
..
company.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
contacts.go Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +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 slugs too to select invoice products without JavaScript 2023-04-26 13:50:02 +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 Accept “invalid” quantity, price, and discount on invoice update 2023-04-24 20:40:10 +02:00
products.go Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +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