use dynamic formset for product action formset

This commit is contained in:
imperosol
2026-03-07 16:21:18 +01:00
parent 7bb3d064ee
commit f17f17d8de
5 changed files with 68 additions and 31 deletions

View File

@@ -21,6 +21,9 @@ document.addEventListener("alpine:init", () => {
* - a button with `@click="addForm"`
* - you may also have one or more buttons with `@click="removeForm(element)"`,
* where `element` is the HTML element containing the form.
*
* For an example of how this is used, you can have a look to
* `counter/templates/counter/product_form.jinja`
*/
Alpine.data("dynamicFormSet", (config?: Config) => ({
init() {