jordi fita mas
8529da1615
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. |
||
---|---|---|
.. | ||
company.go | ||
contacts.go | ||
dashboard.go | ||
db.go | ||
expenses.go | ||
form.go | ||
htmx.go | ||
invoices.go | ||
locale.go | ||
logger.go | ||
login.go | ||
pgtypes.go | ||
products.go | ||
profile.go | ||
recover.go | ||
router.go | ||
template.go |