8000 [WebProfilerBundle] Fix design issue in profiler when having errors i… · symfony/symfony@76e1c0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 76e1c0a

Browse files
Pierstovalfabpot
authored andcommitted
[WebProfilerBundle] Fix design issue in profiler when having errors in forms
1 parent 3c382c5 commit 76e1c0a

File tree

1 file changed

+4
-4
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+4
-4
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,17 +427,17 @@
427427
{% import _self as tree %}
428428
<li>
429429
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
430+
{% if data.errors is defined and data.errors|length > 0 %}
431+
<div class="badge-error">{{ data.errors|length }}</div>
432+
{% endif %}
433+
430434
{% if data.children is not empty %}
431435
<a class="toggle-button" data-toggle-target-id="{{ data.id }}-children" href="#"><span class="toggle-icon"></span></a>
432436
{% else %}
433437
<div class="toggle-icon empty"></div>
434438
{% endif %}
435439

436440
{{ 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 %}
437-
438-
{% if data.errors is defined and data.errors|length > 0 %}
439-
<div class="badge-error">{{ data.errors|length }}</div>
440-
{% endif %}
441441
</div>
442442

443443
{% if data.children is not empty %}

0 commit comments

Comments
 (0)
0