Skip to content

development

Parent/Child Table Editing - Reusing Components

Exploring how powercrud's existing table components can be reused for parent/child relationship editing within forms, if we already had inline editing for the main list.

The Idea

I'm thinking of a feature to make it easy to edit parent and child objects on the same object_form, because this is a very common requirement. We could use inline formsets, which is feasible. But a different pattern could be to have an editable htmx-enabled table of the child objects under the parent form. This article explores how much re-use we could achieve from existing powercrud elements.

Also see Inline Table Editing - What's Already Available.