mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
8449eafcb6
* support parsing negative durations in JS * bump luxon dependency * make sure that 2FA is not required for session based API calls * show name of items to delete * fix permission issue for recent activity items
22 lines
697 B
Twig
22 lines
697 B
Twig
{% extends kimai_context.modalRequest ? 'form.html.twig' : 'base.html.twig' %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
|
|
{% block main %}
|
|
|
|
{% set inUse = (stats.recordsTotal > 0) %}
|
|
|
|
{% set params = {
|
|
'%records%': stats.recordsTotal,
|
|
'%duration%': stats.durationTotal|duration
|
|
} %}
|
|
|
|
{{ include(kimai_context.modalRequest ? 'default/_form_delete_modal.html.twig' : 'default/_form_delete.html.twig', {
|
|
'message': ("delete_warning.short_stats"|trans(params) ~ "admin_entity.delete_confirm"|trans),
|
|
'form': form,
|
|
'delete_item_name': user.displayName,
|
|
'used': inUse,
|
|
'back': path('admin_user')
|
|
}) }}
|
|
|
|
{% endblock %}
|