Skip to content

Commit 1c78573

Browse files
committed
[DX] [Form] [WebProfiler] Added abbrs with type classes
This adds an <abbr> element having a descriptive title that displays the form element's type class name.
1 parent 3fb5ad4 commit 1c78573

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
{% else %}
421421
<div class="toggle-icon empty"></div>
422422
{% endif %}
423-
{{ name }}
423+
{{ name }} {% if data.type is not empty %}[<abbr title="{{ data.type_class }}">{{ data.type }}</abbr>]{% endif %}
424424
{% if data.errors is defined and data.errors|length > 0 %}
425425
<div class="badge-error">{{ data.errors|length }}</div>
426426
{% endif %}

0 commit comments

Comments
 (0)