Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
f1b46908
Commit
f1b46908
authored
Jun 09, 2021
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FAQ Admin : add image on admin list
parent
9a8c5b3a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
FaqAdmin.php
src/Admin/FaqAdmin.php
+2
-1
No files found.
src/Admin/FaqAdmin.php
View file @
f1b46908
...
@@ -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é'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment