Batch multi step and/or form multi step in sonata admin bundle

最后都变了- 提交于 2019-12-10 15:16:32

问题


I have make search but I found nothing that help me. I use sonata admin bundle and first I want to know if it's possible to make multi step form. Second, I'd like to make a new batch action (this step is ok for me), but after user chose the batch action I want a form with field that I can use in my custom batch action.

I have see it's possible to add field next the batch action list but this field are visible for all batch action for me I would like the user first chose the batch action and then see field on a other page for example the confirmation one.

Is there a way to do this?

Thanks a lot for your help.


回答1:


Multi steps form

I found this bundle CraueFormFlowBundle but i never test it. You could try use the jquery-steps front-end library with sonata and custom template for the edit/create view by generate js with js.twig files.

Batch action

For the batch action, you could use redirection in your code batch action logic



来源:https://stackoverflow.com/questions/33264357/batch-multi-step-and-or-form-multi-step-in-sonata-admin-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!