奏鸣曲管理员的皮肤批处理操作

时间:2019-11-27 12:52:16

标签: php symfony sonata-admin

我正在使用symfony的奏鸣曲管理员捆绑包。 点击批处理操作的确定后,是否可以显示模式?

例如此图片:

enter image description here

当我在选定元素后单击“确定”时,应打开一个模态。 有任何自定义的方法可以做到这一点。

1 个答案:

答案 0 :(得分:0)

我认为您可以尝试覆盖默认的修改视图

# config/packages/sonata_admin.yaml

sonata_admin:
    templates:
        edit:  '@SonataAdmin/CRUD/edit.html.twig'

@SonataAdmin/CRUD/edit.html.twig是奏鸣曲使用的默认编辑模板。您可能可以用任何您想要的取代它。然后,添加模态应该与前面已经使用的模态没有什么不同。

相关问题