2023-06-06 21:05:20 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
2023-07-04 15:01:29 +00:00
|
|
|
{% from "macros/widgets.html.twig" import username %}
|
2023-06-06 21:05:20 +00:00
|
|
|
|
|
|
|
{% block table_actions %}
|
|
|
|
{# compare templates/macros/datatables.html.twig macro actions(dataTable) #}
|
|
|
|
{% if page_setup is defined and page_setup.hasPaginationForm() %}
|
|
|
|
<div class="btn-list">
|
|
|
|
{% set form = page_setup.getPaginationForm() %}
|
|
|
|
{{ form_start(form, {'attr': {'onchange': 'this.submit()'}}) }}
|
|
|
|
<div class="btn-list w-100 flex-nowrap">
|
|
|
|
{% if form.date is defined %}
|
|
|
|
{{ form_widget(form.date) }}
|
|
|
|
{% endif %}
|
|
|
|
{% if form.user is defined %}
|
|
|
|
{{ form_widget(form.user) }}
|
|
|
|
{% elseif user is defined and app.user != user %}
|
2023-07-04 15:01:29 +00:00
|
|
|
{{ username(user) }}
|
2023-06-06 21:05:20 +00:00
|
|
|
{% endif %}
|
|
|
|
{% for field in form %}
|
|
|
|
{% if not field.rendered %}
|
|
|
|
{{ form_widget(field) }}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2024-01-19 11:05:07 +00:00
|
|
|
{% block form_addon %}{% endblock %}
|
2023-06-06 21:05:20 +00:00
|
|
|
</div>
|
|
|
|
{{ form_end(form) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|