Batch multi-step and / or multi-line pitch in a sonata kit

I did a search, but did not find anything that would help me. I am using the sonata admin package, and first I want to know if a multi-step form can be done. Secondly, I would like to make a new batch action (this step works for me), but after the user selects the batch action, I need a form with a field that I can use in my custom batch action.

I see that you can add the field further to the list of batch actions, but this field is visible to all batch actions for me. I would like the user to select the batch action first and then look at the field on another page, for example, confirmation.

Is there any way to do this?

Thank you very much for your help.

+4
source share
1 answer

Shape of several steps

I found this CraueFormFlowBundle package , but I never tested it. You can try using jQuery-front-end library with a sonata and a custom template to edit / create a view using js with js.twig files.

Batch action

For batch action, you can use redirection in the logic of batch code action

+2
source

Source: https://habr.com/ru/post/1612619/


All Articles