Skip to content

Commit

Permalink
[WebProfilerBundle][Form] The form data collector return serialized o…
Browse files Browse the repository at this point in the history
…bject when profiler bundle attends object
  • Loading branch information
Simperfit committed May 15, 2019
1 parent 01964c8 commit 04c86fa
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -3,6 +3,9 @@
{% from _self import form_tree_entry, form_tree_details %}

{% block toolbar %}
{% if collector.data is not iterable %}
{% set unserialia = collector.unserialize(collector.data) %}
{% endif %}
{% if collector.data.nb_errors > 0 or collector.data.forms|length %}
{% set status_color = collector.data.nb_errors ? 'red' : '' %}
{% set icon %}
Expand All @@ -28,6 +31,9 @@
{% endblock %}

{% block menu %}
{% if collector.data is not iterable %}
{% set unserialia = collector.unserialize(collector.data) %}
{% endif %}
<span class="label label-status-{{ collector.data.nb_errors ? 'error' }} {{ collector.data.forms is empty ? 'disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/form.svg') }}</span>
<strong>Forms</strong>
Expand Down

0 comments on commit 04c86fa

Please sign in to comment.