numerus/web/template/invoices
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
..
edit.gohtml Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +02:00
index.gohtml Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +02:00
new.gohtml Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +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 Use slugs too to select invoice products without JavaScript 2023-04-26 13:50:02 +02:00
view.gohtml Move back most dialogs to regular (but still boosted) pages 2023-04-25 15:28:55 +02:00