{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block page_title 'OKA Listes' %} {% block head %} {{ parent() }} {% endblock %} {% block toolbar %} {% if collector.data.lists|length %} {% set icon %} {{ include('@Lists/Collector/icon.svg') }} {{ collector.data.lists|length }} {% endset %} {% set text %}
Nombre de listes chargés {{ collector.data.lists|length }}
Listes lazy loadé {{ collector.data.lazy|length }}
Listes paginé {{ collector.data.paginated|length }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status|default('') }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@Lists/Collector/icon.svg') }} OKA Listes {% if collector.data.lists is not empty %} {{ collector.data.lists | length }} {% endif %} {% endblock %} {% block panel %}

OKA Listes

{% if collector.data.lists is empty %}

Aucune liste n'a été chargé sur cette page.

{% else %}
{{ collector.data.lists|length }} Listes chargées
{{ collector.data.lazy|length }} Lazy loadé
{{ collector.data.paginated|length }} Paginé
{% for listData in collector.data.lists %} {% set list = listData.list %}

Liste: {{list.uniqueId}}

Liste: {{list.uniqueId}} / Configuration: {{list.configuration.configKey}}

Wrapper: {{dump(listData.wrapperclass)}}
Adapter: {{dump(listData.adapterclass)}}
{{ list.page }} / {{listData.nbpages}} Page
{{ list.configuration.getConfig('max_per_page') }} Max par page
{{ list.type }} Type
{{ list.mode }} Mode
{{ list.filterBag.filters|length }} Nombre filtres
{% if list.performanceBag is defined and list.performanceBag.hasBuildingTime %} {{ (list.performanceBag.buildingTime * 1000) | round(2) }} ms {% else %} n/a {% endif %} Temps de build
{% if list.performanceBag is defined and list.performanceBag.hasFormCreationTime %} {{ (list.performanceBag.formCreationTime * 1000) | round(2) }} ms {% else %} n/a {% endif %} Création du form
{% if list.performanceBag is defined and list.performanceBag.hasRenderingTime %} {{ (list.performanceBag.renderingTime * 1000) | round(2) }} ms {% else %} n/a {% endif %} Temps de rendu
{% if list.performanceBag is defined and list.performanceBag.hasFormRenderingTime %} {{ (list.performanceBag.formRenderingTime * 1000) | round(2) }} ms {% else %} n/a {% endif %} Rendu du form

Arbre de rendu

{% set defaultConfig = list.configuration.default.template|default([]) %} {% set typeConfig = list.configuration.type.template|default([]) %} {% set specificConfig = list.configuration.specific.template|default([]) %} {% macro type(toCheck, default, type, specific) %} {% if specific == toCheck %} spécifique {% else %} {% if type == toCheck %} type {% else %} défaut {% endif %} {% endif %} {% endmacro %}
{{renderingGraph(list)}}

Filtres

{% if list.filterBag.filters|length != 0 %}
{% for f in list.filterBag.filters %} {{ get_class(f) }}:
Data: {{f.data == null ? "n/a" : f.data}}
Options: {% if f.baseOptions|length == 0 %}Aucune options{% endif %}
{% if f.baseOptions|length != 0 %}
{{dump(f.baseOptions)|trim|raw}}
{% endif %}
Colonnes impactées:
{% for c in f.columns %}{{dump(c)|trim|raw}}{% endfor %}
Processeurs:
{% for p in f.processors %}{{dump(get_class(p))|trim|raw}}{% endfor %}
{% endfor %}
{% else %}

Aucun filtre n'est appliqué à cette liste.

{% endif %}

Colonnes

{% for column in list.columns %} {% endfor %}
Identifiant colonne Nom affiché
{{ column.uniqueId }} {{ column.displayName | capitalize }}

Tri

Type de tri: {{list.sortBag.mode}}

{% if list.sortBag.getSortedColumns() | length != 0 %} {% for key, sort in list.sortBag.getSortedColumns() %} {% endfor %}
Colonne Direction
{{ key }} {{ sort | default("n/a") }} {% if list.sortBag.defaultDirectionColumns[key] is defined and list.sortBag.defaultDirectionColumns[key] == sort %} par défaut {% endif %}
{% else %} {% if list.mode == "cards" %}

Le tri est désactivé pour le mode "cards".

{% else %}

Aucun tri n'est appliqué à cette liste.

{% endif %} {% endif %}

Données

{{ dump(listData)|trim|raw }}
{% endfor %}
{% endif %} {% endblock %}