[WebProfilerBundle] Fix design issue in profiler when having errors in forms

This commit is contained in:
Alex Rock Ancelet 2016-01-27 11:50:18 +01:00 committed by Fabien Potencier
parent 3c382c54c5
commit 76e1c0aefb

View File

@ -427,6 +427,10 @@
{% import _self as tree %}
<li>
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
{% if data.errors is defined and data.errors|length > 0 %}
<div class="badge-error">{{ data.errors|length }}</div>
{% endif %}
{% if data.children is not empty %}
<a class="toggle-button" data-toggle-target-id="{{ data.id }}-children" href="#"><span class="toggle-icon"></span></a>
{% else %}
@ -434,10 +438,6 @@
{% endif %}
{{ name|default('(no name)') }} {% if data.type_class is defined and data.type is defined %}[<abbr title="{{ data.type_class }}">{{ data.type|split('\\')|last }}</abbr>]{% endif %}
{% if data.errors is defined and data.errors|length > 0 %}
<div class="badge-error">{{ data.errors|length }}</div>
{% endif %}
</div>
{% if data.children is not empty %}