<commit_before>{% extends 'forms/base_widget.html' %}

{% block html %}
    <h3>Permissions</h3>
    <div id="permissions-widget-{{ field.id }}" class="permissions-widget">
        {% set event = field.event %}
        <input type="hidden" value='{{ field._value()|tojson|forceescape }}' name="{{ field.name }}">
        <ul class="permissions-widget-list"></ul>
        <div class="toolbars">
            <div class="toolbar">
                <div class="group">
                    <a href="#" class="i-button label text-color outline add-entry-decoration">
                        {%- trans %}Add{% endtrans -%}
                    </a>
                    <a class="i-button js-add-user-group">{% trans %}User / Group{% endtrans %}</a>
                    <a class="i-button arrow js-dropdown" data-toggle="dropdown">{% trans %}Role{% endtrans %}</a>
                    <ul class="dropdown entry-role-dropdown" data-items='{{ field.roles|tojson|forceescape }}'>
                        <li class="separator default"></li>
                        <li class="entry-item new-role-btn default">
                            <a class="js-new-role"
                               data-href="{{ url_for('event_roles.add_role', event) }}"
                               data-title="{% trans %}Add a new role{% endtrans %}"
                               data-ajax-dialog>
                                <span class="icon-medal dropdown-icon"></span>
                                <span>{% trans %}New role{% endtrans %}</span>
                            </a>
                        </li>
                    </ul>
                    {% if field.ip_networks %}
                        <a class="i-button arrow js-dropdown" data-toggle="dropdown">
                            {%- trans %}IP Network{% endtrans -%}
                        </a>
                        <ul class="dropdown entry-ip-network-dropdown"
                            data-items='{{ field.ip_networks|tojson|forceescape }}'></ul>
                    {% endif %}
                </div>
            </div>
            <div class="toolbar">
                <a href="{{ url_for('event_roles.manage', event) }}"
                   class="i-button icon-medal text-color borderless">
                    {%- trans %}Manage roles{% endtrans -%}
                </a>
            </div>
        </div><commit_msg>Remove Manage roles button<commit_after>{% extends 'forms/base_widget.html' %}

{% block html %}
    <h3>Permissions</h3>
    <div id="permissions-widget-{{ field.id }}" class="permissions-widget">
        {% set event = field.event %}
        <input type="hidden" value='{{ field._value()|tojson|forceescape }}' name="{{ field.name }}">
        <ul class="permissions-widget-list"></ul>
        <div class="toolbars">
            <div class="toolbar">
                <div class="group">
                    <a href="#" class="i-button label text-color outline add-entry-decoration">
                        {%- trans %}Add{% endtrans -%}
                    </a>
                    <a class="i-button js-add-user-group">{% trans %}User / Group{% endtrans %}</a>
                    <a class="i-button arrow js-dropdown" data-toggle="dropdown">{% trans %}Role{% endtrans %}</a>
                    <ul class="dropdown entry-role-dropdown" data-items='{{ field.roles|tojson|forceescape }}'>
                        <li class="separator default"></li>
                        <li class="entry-item new-role-btn default">
                            <a class="js-new-role"
                               data-href="{{ url_for('event_roles.add_role', event) }}"
                               data-title="{% trans %}Add a new role{% endtrans %}"
                               data-ajax-dialog>
                                <span class="icon-medal dropdown-icon"></span>
                                <span>{% trans %}New role{% endtrans %}</span>
                            </a>
                        </li>
                    </ul>
                    {% if field.ip_networks %}
                        <a class="i-button arrow js-dropdown" data-toggle="dropdown">
                            {%- trans %}IP Network{% endtrans -%}
                        </a>
                        <ul class="dropdown entry-ip-network-dropdown"
                            data-items='{{ field.ip_networks|tojson|forceescape }}'></ul>
                    {% endif %}
                </div>
            </div>
        </div>
{'fraction_non_alphanumeric': 0.15442812639074321, 'fraction_numerical': 0.0008900756564307966, 'mean_word_length': 1.3241985522233712, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '6607828', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1130, 'n_words': 246}