One form for multiple models (one to many)

Hi everyone,

I have a Slider model that have a one to many relation with Slide model.

Each Slide has a title attribute and an image attribute which has a relation to an Image model.

I want to give the user option to upload multiple slides in one page, by giving him a "+" button that will append a new form of uploading a Slide.

What is the best way and the rightest way to do such a thing?

How to manage the forms and attributes for this many-slides-uploading-form?

Thanks a lot!

Have a look at the guide:

http://www.yiiframework.com/doc-2.0/guide-input-tabular-input.html

Tanks!