<commit_before><?php

use MapasCulturais\i;
?>
<?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'before'); ?>
<!-- Modal -->
<div class="fields-association-modal">
    <?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'begin'); ?>

    <header>
        <h2 class="support-modal-title"><?php i::_e("Selecione os campos que o agente poderá manipular"); ?></h2>
        <a ng-click="data.openModal = false" class="x"><i class="fas fa-times x"></i></a>
    </header>
    <!--Content modal -->
    <div class="modal-body">
        <ul>
            <li ng-repeat="(key,field) in data.fields" ng-class="type-{{field.fieldType}}">
                <label>
                    <div>
                        <code class="field-id">#{{field.id}}</code>
                        <span class="field-title">{{field.title}}</span>
                        <span class="field-type"><strong><?php i::_e('Tipo:'); ?></strong> {{field.fieldType}}</span>
                    </div>
                    <select ng-change="savePermission({{agentRelation.agent.id}})" ng-model="data.userPermissions[field.ref]">
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === ''" value=""><?php i::_e("Sem permissão"); ?></option>
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === 'ro'" value="ro"><?php i::_e("Visualizar"); ?></option>
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === 'rw'"value="rw"><?php i::_e("Modificar"); ?></option>
                    </select>
                </label>
            </li>
        </ul>
    </div><!--Fim content modal -->
    <footer>
    </footer>

    <?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'end'); ?>
</div><!--Fim modal -->
<?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'after'); ?><commit_msg>Remove campo de sessão da listagem de campos dos agentes de suporte<commit_after><?php

use MapasCulturais\i;
?>
<?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'before'); ?>
<!-- Modal -->
<div class="fields-association-modal">
    <?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'begin'); ?>

    <header>
        <h2 class="support-modal-title"><?php i::_e("Selecione os campos que o agente poderá manipular"); ?></h2>
        <a ng-click="data.openModal = false" class="x"><i class="fas fa-times x"></i></a>
    </header>
    <!--Content modal -->
    <div class="modal-body">
        <ul>
            <li ng-repeat="(key,field) in data.fields" ng-class="type-{{field.fieldType}}" ng-if="field.fieldType != 'section'">
                <label>
                    <div>
                        <code class="field-id">#{{field.id}}</code>
                        <span class="field-title">{{field.title}}</span>
                        <span class="field-type"><strong><?php i::_e('Tipo:'); ?></strong> {{field.fieldType}}</span>
                    </div>
                    <select ng-change="savePermission({{agentRelation.agent.id}})" ng-model="data.userPermissions[field.ref]">
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === ''" value=""><?php i::_e("Sem permissão"); ?></option>
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === 'ro'" value="ro"><?php i::_e("Visualizar"); ?></option>
                        <option ng-selected="agentRelation.metadata.registrationPermissions[field.ref] === 'rw'"value="rw"><?php i::_e("Modificar"); ?></option>
                    </select>
                </label>
            </li>
        </ul>
    </div><!--Fim content modal -->
    <footer>
    </footer>

    <?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'end'); ?>
</div><!--Fim modal -->
<?php $this->applyTemplateHook('opportunity-support-fields-association-modal', 'after'); ?>
{'fraction_non_alphanumeric': 0.2013668537954601, 'fraction_numerical': 0.000976324139614352, 'mean_word_length': 2.6753363228699554, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 115, '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': '7255763', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1204, 'n_words': 195}