0
0
mirror of https://github.com/kevinpapst/kimai2.git synced 2024-12-22 12:18:29 +00:00
kevinpapst_kimai2/templates/reporting/layout.html.twig
Kevin Papst 0cbf0053d2
Release 2.0.5 (#3888)
- Fixed: mandatory fields / form validation for invoice template
- Added: Duration as calendar title replacer (open: running records)
- Fixed: HTML injection in Calendar
- Fixed: Doctrine Proxies are not initialized (leads to empty customer/project)
- Fixed: tag creation
- Fixed: validation errors do not need to be logged in prod
- Removed: Customer VCard download, as used library is outdated and not maintained
- Added: supporting translations domains in many new places (menu, help_text, page_setup, report, exporter, calendar)
2023-03-05 03:08:43 +01:00

54 lines
1.7 KiB
Twig

{% extends 'base.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% block page_title %}{{ 'menu.reporting'|trans }}{% endblock %}
{% block breadcrumb %}
{% from "macros/breadcrumb.html.twig" import breadcrumb %}
{% if page_setup is defined %}
{{ breadcrumb({
('menu.reporting'|trans): path('reporting'),
(page_setup.title|trans({}, page_setup.translationDomain)): '#'
}) }}
{% else %}
{{ breadcrumb({
('menu.reporting'|trans): path('reporting'),
(report_title|trans({}, 'reporting')): '#'
}) }}
{% endif %}
{% endblock %}
{% block main %}
{% if form is defined %}
<div class="card mb-3">
<div class="card-body">
{% block report_form %}
{{ form_start(form, {'attr': {'class': 'form-reporting', 'id': 'report-form'}}) }}
<div class="{% block report_form_container_class %}btn-list w-100{% endblock %}">
{% block report_form_layout %}{{ form_rest(form) }}{% endblock %}
</div>
{{ form_end(form) }}
{% endblock %}
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-12" id="reporting-content">
{% block report %}{% endblock %}
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
const reportForm = document.getElementById('report-form');
if (reportForm !== null) {
reportForm.addEventListener('change', (event) => {
reportForm.submit();
});
}
</script>
{% endblock %}