0
0
mirror of https://github.com/kevinpapst/kimai2.git synced 2024-12-22 04:08:29 +00:00
kevinpapst_kimai2/templates/datatable.html.twig
Kevin Papst 0663995d06
Release 2.0.25 (#4066)
* added support for hourly rate column in detail table
* allow to register icon in extension
* allow to show QR code secret
* new translations
* bump theme and packages
* fix validation for invoice-document-filenames with uppercase character
* max upload size 1MB
* fix last month in daterange-picker in certain situations, more years in quick-select
* remove unused package-versions-deprecated
* link preferences from contract warning message
* added page_setup page layout
* prevent DROP TABLE in addSQL() and replace drop table with schema call
* added azuyalabs/yasumi
2023-06-06 23:05:20 +02:00

56 lines
1.8 KiB
Twig

{% extends 'base.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% import "macros/datatables.html.twig" as tables %}
{% if dataTable is not defined and page_setup is defined and page_setup.hasDataTable() %}
{% set dataTable = page_setup.getDataTable() %}
{% endif %}
{% block main_before %}
{{ tables.configuration(dataTable) }}
{% endblock %}
{% block table_actions %}
{{ tables.actions(dataTable) }}
{% endblock %}
{% block status %}
{% if dataTable.getPagination() is not null %}
{% from "macros/status.html.twig" import status_count %}
{{ status_count(dataTable.getPagination().getNbResults()) }}
{% endif %}
{% endblock %}
{% block main %}
{% if not dataTable.hasResults() %}
{{ widgets.nothing_found(dataTable.getReloadEvents()) }}
{% else %}
{{ tables.header(dataTable) }}
{% block datatable_before %}{% endblock %}
{% set sortedColumns = dataTable.sortedColumnNames %}
{% block datatable_outer %}
{% for entry in dataTable %}
{% block datatable_row %}
<tr{% block datatable_row_attr %}{% endblock %}>
{% for column, data in sortedColumns %}
{% block datatable_column %}
<td class="{{ tables.class(dataTable, column) }}"{% block datatable_column_attr %}{% endblock %}>
{% block datatable_column_value %}{% endblock %}
</td>
{% endblock %}
{% endfor %}
</tr>
{% endblock %}
{% endfor %}
{% endblock %}
{% block datatable_after %}{% endblock %}
{{ tables.footer(dataTable) }}
{% endif %}
{% endblock %}