0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-06 18:20:02 +00:00
kevinpapst_kimai2/templates/datatable.html.twig
Kevin Papst 8069e332fe
release 2.0 beta (#3722)
* remove twitter link
* remove WIP file
* adjust release draft message
* reset code coverage threshold back to 0.5
* changed wordings
* re-activate wizard for fixture accounts
* fix repo url and license
* license identifier
* bump version
* moved Kimai 1 import command from core to plugin
* do not traverse into invoice template subdirectories (#3735)
* fix branch alias
* composer update
* switch language on wizard select
* new twig function to create qr code
* fix daily stats in timesheet listing
* improved html invoice templates
2023-01-12 12:10:11 +01:00

51 lines
1.7 KiB
Twig

{% extends 'base.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% import "macros/datatables.html.twig" as tables %}
{% 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 %}