numerus/pkg
jordi fita mas 8529da1615 Use HTMx to delete and restore invoice products
It is better that way because it works without JavaScript; if HTMx is
not available, it will just use regulars forms.

The problem is that most of the submit buttons where using formaction
to send the request to a different action, and only one button was the
“real” action.  Since i could not pass the formaction to
invoice-product-form template, i have changed the “default” action to
the one with “ancillary” functions.

I have to use a different action to remove for each product because i
can not pass the index to the backend without JavaScript: it only
depends on the button click, that already has a name for the action.
Thus, in a way, i have “merged” the action and the index in a single
name.
2023-05-29 00:01:11 +02:00
..
company.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
contacts.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
dashboard.go Add tooltips to the SVG chart with date and amount 2023-05-21 19:22:46 +02:00
db.go Properly register array and composite PostgreSQL types with pgtype 2023-02-20 11:42:21 +01:00
expenses.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
form.go Use a null as product ID when adding new products to invoices 2023-05-22 11:06:06 +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 delete and restore invoice products 2023-05-29 00:01:11 +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 Use a null as product ID when adding new products to invoices 2023-05-22 11:06:06 +02:00
products.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +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 Begin the dashboard with expenses, gross income, net income, and taxes 2023-05-16 14:56:49 +02:00
template.go Begin the dashboard with expenses, gross income, net income, and taxes 2023-05-16 14:56:49 +02:00