0
0
mirror of https://github.com/kevinpapst/kimai2.git synced 2024-12-22 04:08:29 +00:00
kevinpapst_kimai2/templates/page_setup.html.twig
2024-01-19 12:05:07 +01:00

30 lines
1.2 KiB
Twig

{% extends 'base.html.twig' %}
{% from "macros/widgets.html.twig" import username %}
{% 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 %}
{{ username(user) }}
{% endif %}
{% for field in form %}
{% if not field.rendered %}
{{ form_widget(field) }}
{% endif %}
{% endfor %}
{% block form_addon %}{% endblock %}
</div>
{{ form_end(form) }}
</div>
{% endif %}
{% endblock %}