How to nest forms ?
I'll try to give as much details I can to explain what I'm trying to do.
First, I wrote some specs to define the data model I'm using as the bookkeeper
LDP server module: https://gitlab.com/happydevparis/sailor/bookkeeper/-/blob/master/docs/specs.md
Then I created a project for the front app relying on this module here: https://gitlab.com/happydevparis/sailor/app
I'm able to display the content of the transactions.
But I don't know how to proceed to create new transactions
and postings
. So far, I created 2 forms. One for the creation of a new transaction and one to create new postings in this transaction: https://gitlab.com/happydevparis/sailor/app/-/blob/master/client/transactions.js#L26
What I need is to bind those 2 steps together. multiple
seemed the way to go because it allows me to create transactions
and then add content to them with the +
button. But I couldn't make it work with 2 fields (my postings
have amount
and accounts
attributes).
I don't mind exploring but right now I need direction for my next steps. Any insigths ?