Closed KalleJoP closed 9 months ago
Hi @KalleJoP
Currently this is only possible by overriding the form component for your product resource. Theoretically it should be possible to add built in support using a similar strategy that is currently used to support embeds, but assoc handling can be tricky so I'm not 100% confident how much complexity it would add. There are also UX issues to consider, since an association could contain a large amount of records that would have to be preloaded in order to even render the form and in a lot of cases this would not be desirable, so I don't think it could be enabled by default for every association, which inclines me to think it's better left to overrides.
Is it possible to edit has_many associations in the parent schema?
I have already come across this issue on GitHub: https://github.com/tfwright/live_admin/issues/15, but it only explains how to select the parent ID.
For instance:
It would be beneficial if I could create or edit
ProductVariants
for aProduct
directly within the product form.Product Schema:
Product Variants Schema: