Commit f1b46908 by Julien Jorry

FAQ Admin : add image on admin list

parent 9a8c5b3a
...@@ -70,7 +70,8 @@ class FaqAdmin extends AbstractAdmin ...@@ -70,7 +70,8 @@ class FaqAdmin extends AbstractAdmin
->addIdentifier('name', null, ['label' => 'Titre']) ->addIdentifier('name', null, ['label' => 'Titre'])
->add('content', 'html', ['label' => 'Text', 'sortable' => false]) ->add('content', 'html', ['label' => 'Text', 'sortable' => false])
->add('fichier', null, ['label' => 'Fichier']) ->add('fichier', null, ['label' => 'Fichier'])
->add('image', null, ['label' => 'Image']) // ->add('image', null, ['label' => 'Image'])
->add('image', null, ['label' => 'Icône', 'template' => '@kohinos/bundles/SonataAdminBundle/Image/preview_image_o.html.twig'])
->addIdentifier('user', null, ['label' => 'Auteur']) ->addIdentifier('user', null, ['label' => 'Auteur'])
->add('enabled', null, [ ->add('enabled', null, [
'label' => 'Activé', 'label' => 'Activé',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment