In T360445 a design is proposed to add support for adding and removing elements from arrays. This task is to make an initial implementation of that design and support this feature.
Design specification for nested fields: Codex constructing forms docs
Acceptance criteria
- Collection item fields are wrapped in a box, T364846
- Using multi-column fields to save vertical space and improve the double enumeration.
- Add a trash button inside each module, clicking on it removes the element
- Add a button to 'Add another (collection element)', clicking on it adds an empty item
Open questions
- Should all arrays have management? If not, how should an schema opt-in/opt-out from having management
- Should we add support json-schema's minItems, maxItems vocabulary and let it configure the bahviour of the management (see docs) as part of this task?