<commit_before>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:Form:form_admin_fields.html.twig' %}

{% block doctrine_phpcr_type_tree_model_widget %}
{% include 'SymfonyCmfTreeBrowserBundle:Base:tree.html.twig' %}
<script type="text/javascript">
    $(document).ready(function() {

        var treeState = AdminTree.generateTreeStateArray("{{ value }}");
        SelectTree.initTree({
            "selector": "#{{id}}-tree-selector",
            "rootNode": "{{ root_node }}",
            "output": "#{{id}}-tree-selector-output",
            "reset": "#{{id}}-tree-reset",
            "path": {
                "expanded":     treeState,
                "preloaded":    treeState
            },
            "icon": {
                "document": "{{ asset('bundles/symfonycmftree/images/document.png') }}",
                "folder":   "{{ asset('bundles/symfonycmftree/images/folder.png') }}"
            },
            "route": {
                "edit":     'admin_sandbox_main_editablestaticcontent_edit',
                "erase":    'admin_sandbox_main_editablestaticcontent_delete'
            },
            "selected": '{{ value }}',
            "selectRootNode": {{ select_root_node ? 'true' : 'false' }}
        });
    })
</script>

<div id="{{id}}-tree-selector"></div>
{% if value == 0 %}
<input name="{{full_name}}" id="{{id}}-tree-selector-output" value="{{ select_root_node ? root_node : ''}}" readonly="readonly">
{% else %}
<input name="{{full_name}}" id="{{id}}-tree-selector-output" value="{{value}}" readonly="readonly">
{% endif %}
<button class="btn btn-mini" id={{id}}-tree-reset>{{ 'resett_tree' | trans({}, 'SonataDoctrinePHPCRAdmin') }}</button>
{% endblock %}<commit_msg>fix typo<commit_after>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:Form:form_admin_fields.html.twig' %}

{% block doctrine_phpcr_type_tree_model_widget %}
{% include 'SymfonyCmfTreeBrowserBundle:Base:tree.html.twig' %}
<script type="text/javascript">
    $(document).ready(function() {

        var treeState = AdminTree.generateTreeStateArray("{{ value }}");
        SelectTree.initTree({
            "selector": "#{{id}}-tree-selector",
            "rootNode": "{{ root_node }}",
            "output": "#{{id}}-tree-selector-output",
            "reset": "#{{id}}-tree-reset",
            "path": {
                "expanded":     treeState,
                "preloaded":    treeState
            },
            "icon": {
                "document": "{{ asset('bundles/symfonycmftree/images/document.png') }}",
                "folder":   "{{ asset('bundles/symfonycmftree/images/folder.png') }}"
            },
            "route": {
                "edit":     'admin_sandbox_main_editablestaticcontent_edit',
                "erase":    'admin_sandbox_main_editablestaticcontent_delete'
            },
            "selected": '{{ value }}',
            "selectRootNode": {{ select_root_node ? 'true' : 'false' }}
        });
    })
</script>

<div id="{{id}}-tree-selector"></div>
{% if value == 0 %}
<input name="{{full_name}}" id="{{id}}-tree-selector-output" value="{{ select_root_node ? root_node : ''}}" readonly="readonly">
{% else %}
<input name="{{full_name}}" id="{{id}}-tree-selector-output" value="{{value}}" readonly="readonly">
{% endif %}
<button class="btn btn-mini" id={{id}}-tree-reset>{{ 'reset_tree' | trans({}, 'SonataDoctrinePHPCRAdmin') }}</button>
{% endblock %}
{'fraction_non_alphanumeric': 0.18492784607161947, 'fraction_numerical': 0.0005344735435595938, 'mean_word_length': 2.8908523908523907, 'pattern_counts': {'":': 30, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5443690', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1109, 'n_words': 207}