This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
1
{% block cmf_tree_select_widget %}
2
2
{% block cmf_tree_select_widget_js %}
3
- {% include ' CmfTreeBrowserBundle:Base:tree.html.twig' %}
3
+ {% block cmf_tree_select_widget_assets -%}
4
+ {% include ' CmfTreeBrowserBundle:Base:tree.html.twig' %}
5
+ {%- endblock %}
6
+
4
7
<script >
5
8
jQuery (function ($ ) {
6
9
$ (' #{{ id }}-cmf-tree' ).cmfTree ({
25
28
e .preventDefault ();
26
29
e .stopPropagation ();
27
30
28
- var $input = $ (this ). prev ( ' input ' );
31
+ var $input = $ (' #{{ id }} ' );
29
32
var offset = $input .position ();
30
33
$tooltip .css ({
31
34
left: offset .left ,
62
65
{% endblock %}
63
66
64
67
{% if " compact" == widget %}
65
- <div id =" {{ id }}-cmf-tree-tooltip" >
66
- <div id =" {{ id }}-cmf-tree" ></div >
67
- </div >
68
+ {%- block cmf_tree_select_widget_tooltip %}
69
+ <div id =" {{ id }}-cmf-tree-tooltip" >
70
+ <div id =" {{ id }}-cmf-tree" ></div >
71
+ </div >
72
+ {% endblock -%}
68
73
{% else %}
69
74
<div id =" {{ id }}-cmf-tree" ></div >
70
75
{% endif %}
71
76
72
- {{ block (' form_widget_simple' ) }}
77
+ {% block cmf_tree_select_widget_input -%}
78
+ {{ block (' form_widget_simple' ) }}
73
79
74
- {% if " compact" == widget %}
75
- <button id =" {{ id }}-cmf-tree-tooltip-toggle" >{{ ' form.button.pick' | trans({}, ' CmfTreeBrowserBundle' ) }}</button >
76
- {% endif %}
80
+ {% if " compact" == widget %}
81
+ <button id =" {{ id }}-cmf-tree-tooltip-toggle" >{{ ' form.button.pick' | trans({}, ' CmfTreeBrowserBundle' ) }}</button >
82
+ {% endif %}
83
+ {%- endblock %}
77
84
{% endblock %}
You can’t perform that action at this time.
0 commit comments