mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
install twig intl-extra, replace localizeddate filter by format_date
This commit is contained in:
parent
0092557d84
commit
8944d21652
@ -19,7 +19,7 @@
|
||||
{% for event in events %}
|
||||
<tr>
|
||||
<td>{{ event.name }}</td>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ event.date|format_date('long', 'short') }}</td>
|
||||
<td>{{ event.type.name|localize_translatable_string }}</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
|
@ -38,7 +38,7 @@
|
||||
<tbody>
|
||||
{% for participation in participations %}
|
||||
<tr>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
|
||||
<td>{{ participation.event.name }}</td>
|
||||
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
||||
|
@ -15,7 +15,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }}</th>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ event.date|format_date('long', 'short') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Event type'|trans }}</th>
|
||||
@ -85,7 +85,7 @@
|
||||
<td>{{ person_macro.render(participation.person) }}</td>
|
||||
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.status.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.lastUpdate|localizeddate("long", "medium")|escape('html_attr') }}"></i></td>
|
||||
<td>{{ participation.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i></td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
|
||||
|
@ -13,7 +13,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ event.date|format_date('long', 'short') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -38,7 +38,7 @@
|
||||
<td>{{ person_macro.render(participation.vars.value.person) }}</td>
|
||||
<td>{{ form_widget(participation.role) }}</td>
|
||||
<td>{{ form_widget(participation.status) }}</td>
|
||||
<td>{{ participation.vars.value.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|localizeddate("long", "medium")|escape('html_attr') }}"></i></td>
|
||||
<td>{{ participation.vars.value.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -7,7 +7,7 @@
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
<h3>{{ event.date|localizeddate('long', 'short') }}
|
||||
<h3>{{ event.date|format_date('long', 'short') }}
|
||||
<span class="event"> /
|
||||
{% if boolDate|trans == 'futur' %}
|
||||
<span class="chill-orange">Prochain</span> événement
|
||||
|
Loading…
x
Reference in New Issue
Block a user