mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
localize date in report bundles: switch to twig intl extension
refs #272 refs # Task #272 - Find a way to deal with date format automatically
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
{% for report in reports %}
|
||||
<tr>
|
||||
<td>{{ report.person }}</td>
|
||||
<td>{% if report.date %}{{ report.date|date('d-m-Y') }}{% endif %}</td>
|
||||
<td>{% if report.date %}{{ report.date|localizeddate('long', 'none') }}{% endif %}</td>
|
||||
<td>{{ report.cFGroup.getName|localize_translatable_string }}</td>
|
||||
<!-- <td>{{ report.scope }}</td> -->
|
||||
<td><a href="{{ path('report_view', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'View the report' | trans }}</a></td>
|
||||
|
Reference in New Issue
Block a user