Skip to content

Commit

Permalink
bug #3545 Show panel icon in detail view (lukasluecke)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Show panel icon in detail view

Fixes #3544

<img width="394" alt="CleanShot 2020-07-13 at 17 51 19@2x" src="https://user-images.githubusercontent.com/6652670/87325232-7a0d9000-c531-11ea-8572-e3c353e21384.png">

Commits
-------

325fcba Show panel icon in detail view
  • Loading branch information
javiereguiluz committed Jul 13, 2020
2 parents 6d0170d + 325fcba commit e59c824
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Resources/views/crud/detail.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
<div class="{{ field.cssClass }}">
<div class="content-panel">
<div class="content-panel-header">
{% if field.customOption('icon') %}
<i class="{{ field.customOption('icon') }}"></i>
{% endif %}
{{ field.label|raw }}

{% if field.help is not empty %}
Expand Down

0 comments on commit e59c824

Please sign in to comment.