SonataAdminBundle 显示带有选项卡的视图
SonataAdminBundle show view with tabs
我正在使用 SontaAdminBundle,我想在选项卡上组织我的表演动作。
protected function configureShowFields(ShowMapper $showMapper)
{
$showMapper
->tab('Infos personnelles')
->with('Beneficiary', array('class' => 'col-lg-6'))
->add('email')
->add('firstname')
->add('lastname')
->add('civility')
->add('dateOfBirth')
->add('enabled')
->add('address')
->end()
->end()
->tab('projects')
->with('projects')
->add('title')
->add('statusLabel')
->end()
->end();
}
但是没用。还有其他配置吗?
感谢
你使用的配置很好,你只需要更新你的奏鸣曲版本到master,检查这个commit的变化:
https://github.com/sonata-project/SonataAdminBundle/commit/fd1a1596f86bfb4afdafe9767efaa4c787bba6a5
SonataAdminBundle/Resources/views/CRUD/base_show.html.twig
已更新。
希望对您有所帮助。
我正在使用 SontaAdminBundle,我想在选项卡上组织我的表演动作。
protected function configureShowFields(ShowMapper $showMapper)
{
$showMapper
->tab('Infos personnelles')
->with('Beneficiary', array('class' => 'col-lg-6'))
->add('email')
->add('firstname')
->add('lastname')
->add('civility')
->add('dateOfBirth')
->add('enabled')
->add('address')
->end()
->end()
->tab('projects')
->with('projects')
->add('title')
->add('statusLabel')
->end()
->end();
}
但是没用。还有其他配置吗?
感谢
你使用的配置很好,你只需要更新你的奏鸣曲版本到master,检查这个commit的变化:
https://github.com/sonata-project/SonataAdminBundle/commit/fd1a1596f86bfb4afdafe9767efaa4c787bba6a5
SonataAdminBundle/Resources/views/CRUD/base_show.html.twig
已更新。
希望对您有所帮助。