<commit_before>{% extends "forms/field.html.twig" %}

{% block input %}
    {% set permissions = grav.permissions %}
    {% set access = permissions.access(value) %}
    {% set tu = grav.twig.twig.filters['tu'] is defined %}
    {% if object and field.check_authorize %}
        {% set auth_badges = true %}
        {% set super = object.authorize('admin.super', 'test') %}
    {% endif %}

    <div class="permissions-container">
        {% set optionsList = [
            { 'Site': {
                'site': 'Site (site)',
                'site.login': 'Site Login (site.login)'
            }
            },
            { 'Admin': {
                'admin': 'Admin (admin)',
                'admin.login': 'Admin Login (admin.login)',
                'admin.cache': 'Admin Cache (admin.cache)',
                'admin.users': 'User Accounts (admin.users)'
            }
            }
        ] %}

        {% set groupsList = [
            { label: 'Site', value: 'site' },
            { label: 'Admin', value: 'admin' }
        ] %}

        {% set optionsList = [
            { text: 'Site (site)', value: 'site', optgroup: 'site' },
            { text: 'Site Login (site.login)', value: 'site.login', optgroup: 'site' },
            { text: 'Admin (admin)', value: 'admin', optgroup: 'admin' },
            { text: 'Admin Login (admin.login)', value: 'admin.login', optgroup: 'admin' },
            { text: 'Admin Cache (admin.cache)', value: 'admin.cache', optgroup: 'admin' },
            { text: 'User Accounts (admin.users)', value: 'admin.users', optgroup: 'admin' }
        ] %}
    </div>

    {% include 'forms/fields/select/select.html.twig' with { field: { label: false, display_label: false, selectize: { options: optionsList, optgroups: groupsList } } } %}
{% endblock %}<commit_msg>Fixed missing name in page_access field (breaks form)<commit_after>{% extends "forms/field.html.twig" %}

{% block input %}
    {% set permissions = grav.permissions %}
    {% set access = permissions.access(value) %}
    {% set tu = grav.twig.twig.filters['tu'] is defined %}
    {% if object and field.check_authorize %}
        {% set auth_badges = true %}
        {% set super = object.authorize('admin.super', 'test') %}
    {% endif %}

    <div class="permissions-container">
        {% set optionsList = [
            { 'Site': {
                'site': 'Site (site)',
                'site.login': 'Site Login (site.login)'
            }
            },
            { 'Admin': {
                'admin': 'Admin (admin)',
                'admin.login': 'Admin Login (admin.login)',
                'admin.cache': 'Admin Cache (admin.cache)',
                'admin.users': 'User Accounts (admin.users)'
            }
            }
        ] %}

        {% set groupsList = [
            { label: 'Site', value: 'site' },
            { label: 'Admin', value: 'admin' }
        ] %}

        {% set optionsList = [
            { text: 'Site (site)', value: 'site', optgroup: 'site' },
            { text: 'Site Login (site.login)', value: 'site.login', optgroup: 'site' },
            { text: 'Admin (admin)', value: 'admin', optgroup: 'admin' },
            { text: 'Admin Login (admin.login)', value: 'admin.login', optgroup: 'admin' },
            { text: 'Admin Cache (admin.cache)', value: 'admin.cache', optgroup: 'admin' },
            { text: 'User Accounts (admin.users)', value: 'admin.users', optgroup: 'admin' }
        ] %}
    </div>

    {% include 'forms/fields/select/select.html.twig' with { field: { name: name, label: false, display_label: false, selectize: { options: optionsList, optgroups: groupsList } } } %}
{% endblock %}
{'fraction_non_alphanumeric': 0.1768893756845564, 'fraction_numerical': 0.0, 'mean_word_length': 2.029021558872305, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5937089', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1047, 'n_words': 267}