<commit_before>{% extends bap.layout is defined ? bap.layout : 'OroUserBundle::layout.html.twig' %}

{% block title %}Acl resources - {{ parent() }}{% endblock %}

{% block head_script %}
    {{ parent() }}

    <script type="text/javascript" src="{{ asset('bundles/oroui/lib/jstree/jquery.hotkeys.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/oroui/lib/jstree/jquery.jstree.js') }}"></script>
{% endblock head_script %}

{% block page_container %}
    <div class="container-fluid">
        {% block content %}
            <h1>Edit ACL</h1>
            <form action="{{ path('oro_user_acl_save', { id: role.id }) }}" method="POST">
                <div id="acl_tree">
                    {% include 'OroUserBundle:Acl:_subTree.html.twig' with {'resources': resources} %}
                </div>
                <div class="form-row form-actions">
                    <button class="btn btn-large btn-primary" type="submit">Save</button>
                </div>
            </form>

            <script type="text/javascript">
                $(function() {
                    $('#acl_tree').jstree({
                        "checkbox": {
                            real_checkboxes: true,
                            real_checkboxes_names: function (n) {
                                return ['resource[' + n.data('id') + ']', 1]
                            }
                        },
                        "plugins": ["themes", "html_data", "ui", "checkbox", "hotkeys"]
                    });
                });
            </script><commit_msg>fixed jstree<commit_after>{% extends bap.layout is defined ? bap.layout : 'OroUserBundle::layout.html.twig' %}

{% block title %}Acl resources - {{ parent() }}{% endblock %}

{% block head_script %}
    {{ parent() }}

    <script type="text/javascript" src="{{ asset('bundles/oroui/lib/jstree/jquery.hotkeys.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/oroui/lib/jstree/jquery.jstree.js') }}"></script>
{% endblock head_script %}

{% block page_container %}
    <div class="container-fluid oro-tree">
        {% block content %}
            <h1>Edit ACL</h1>
            <form action="{{ path('oro_user_acl_save', { id: role.id }) }}" method="POST">
                <div id="acl_tree">
                    {% include 'OroUserBundle:Acl:_subTree.html.twig' with {'resources': resources} %}
                </div>
                <div class="form-actions">
                    <button class="btn btn-large btn-primary" type="submit">Save</button>
                </div>
            </form>

            <script type="text/javascript">
                $(function() {
                    $('#acl_tree').jstree({
                        "checkbox": {
                            real_checkboxes: true,
                            real_checkboxes_names: function (n) {
                                return ['resource[' + n.data('id') + ']', 1]
                            }
                        },
                        "plugins": ["themes", "html_data", "ui", "checkbox", "hotkeys"]
                    });
                });
            </script>
{'fraction_non_alphanumeric': 0.16671929270603095, 'fraction_numerical': 0.001894537417113988, 'mean_word_length': 1.6181818181818182, 'pattern_counts': {'":': 4, '<': 37, '<?xml version=': 0, '>': 37, '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': '2545174', 'n_tokens_mistral': 924, 'n_tokens_neox': 857, 'n_words': 162}