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
9a1f209f
Commit
9a1f209f
authored
Jun 09, 2021
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FAQ Admin : add image on admin list BIS
parent
23efcade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
preview_image_o.html.twig
...bundles/SonataAdminBundle/Image/preview_image_o.html.twig
+6
-1
No files found.
templates/themes/kohinos/bundles/SonataAdminBundle/Image/preview_image_o.html.twig
View file @
9a1f209f
...
@@ -2,5 +2,9 @@
...
@@ -2,5 +2,9 @@
{%
block
field
%}
{%
block
field
%}
{# <img src="
{{
vich_uploader_asset(object, 'file') }}" alt="" style="max-height: 50px; max-width: 50px;" /> #}
{# <img src="
{{
vich_uploader_asset(object, 'file') }}" alt="" style="max-height: 50px; max-width: 50px;" /> #}
{%
thumbnail
object.media
,
'preview'
%}
{%
if
object.image
is
defined
%}
{%
thumbnail
object.image
,
'small'
%}
{%
elseif
object.media
is
defined
%}
{%
thumbnail
object.media
,
'preview'
%}
{%
endif
%}
{%
endblock
%}
{%
endblock
%}
\ No newline at end of file
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