[WebProfilerBundle] add import for Twig macro
This commit is contained in:
parent
698341631b
commit
17950711a2
@ -418,6 +418,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% macro form_tree_entry(name, data, expanded) %}
|
{% macro form_tree_entry(name, data, expanded) %}
|
||||||
|
{% import _self as tree %}
|
||||||
<li>
|
<li>
|
||||||
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
|
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
|
||||||
{% if data.children is not empty %}
|
{% if data.children is not empty %}
|
||||||
@ -434,7 +435,7 @@
|
|||||||
{% if data.children is not empty %}
|
{% if data.children is not empty %}
|
||||||
<ul id="{{ data.id }}-children"{% if not expanded %} class="hidden"{% endif %}>
|
<ul id="{{ data.id }}-children"{% if not expanded %} class="hidden"{% endif %}>
|
||||||
{% for childName, childData in data.children %}
|
{% for childName, childData in data.children %}
|
||||||
{{ form_tree_entry(childName, childData, false) }}
|
{{ tree.form_tree_entry(childName, childData, false) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -442,6 +443,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro form_tree_details(name, data, forms_by_hash) %}
|
{% macro form_tree_details(name, data, forms_by_hash) %}
|
||||||
|
{% import _self as tree %}
|
||||||
<div class="tree-details" {% if data.id is defined %} id="{{ data.id }}-details"{% endif %}>
|
<div class="tree-details" {% if data.id is defined %} id="{{ data.id }}-details"{% endif %}>
|
||||||
<h2>
|
<h2>
|
||||||
{{ name|default('(no name)') }}
|
{{ name|default('(no name)') }}
|
||||||
@ -673,6 +675,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for childName, childData in data.children %}
|
{% for childName, childData in data.children %}
|
||||||
{{ form_tree_details(childName, childData, forms_by_hash) }}
|
{{ tree.form_tree_details(childName, childData, forms_by_hash) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
Reference in New Issue
Block a user