twig filter format_date need only one argument

This commit is contained in:
Tchama 2020-09-10 16:00:32 +02:00
parent 61be9ca943
commit ce28ad18b1
6 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@
{% for event in events %}
<tr>
<td>{{ event.name }}</td>
<td>{{ event.date|format_date('long', 'short') }}</td>
<td>{{ event.date|format_date('long') }}</td>
<td>{{ event.type.name|localize_translatable_string }}</td>
<td>
<ul class="record_actions">

View File

@ -38,7 +38,7 @@
<tbody>
{% for participation in participations %}
<tr>
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
<td>{{ participation.event.date|format_date('short') }}</td>
<td>{{ participation.event.name }}</td>
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
<td>{{ participation.role.name|localize_translatable_string }}</td>

View File

@ -15,7 +15,7 @@
</tr>
<tr>
<th>{{ 'Date'|trans }}</th>
<td>{{ event.date|format_date('long', 'short') }}</td>
<td>{{ event.date|format_date('long') }}</td>
</tr>
<tr>
<th>{{ 'Event type'|trans }}</th>
@ -87,7 +87,7 @@
<td>{{ participation.status.name|localize_translatable_string }}</td>
<td>{{ participation.lastUpdate|ago }} {# sf4 check: filter 'time_diff' is abandoned,
alternative: knplabs/knp-time-bundle provide filter 'ago' #}
<i class="fa fa-info-circle" title="{{ participation.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i>
<i class="fa fa-info-circle" title="{{ participation.lastUpdate|format_date("long")|escape('html_attr') }}"></i>
</td>
<td>
<ul class="record_actions">

View File

@ -13,7 +13,7 @@
</tr>
<tr>
<th>{{ 'Date'|trans }} </th>
<td>{{ event.date|format_date('long', 'short') }}</td>
<td>{{ event.date|format_date('long') }}</td>
</tr>
</tbody>
</table>
@ -40,7 +40,7 @@
<td>{{ form_widget(participation.status) }}</td>
<td>{{ participation.vars.value.lastUpdate|ago }} {# sf4 check: filter 'time_diff' is abandoned,
alternative: knplabs/knp-time-bundle provide filter 'ago' #}
<i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i>
<i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long")|escape('html_attr') }}"></i>
</td>
</tr>
{% endfor %}

View File

@ -17,7 +17,7 @@
</tr>
<tr>
<th>{{ 'Date'|trans }} </th>
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
<td>{{ participation.event.date|format_date('long') }}</td>
</tr>
</tbody>
</table>

View File

@ -7,7 +7,7 @@
{% endif %}
<div>
<h3>{{ event.date|format_date('long', 'short') }}
<h3>{{ event.date|format_date('long') }}
<span class="event"> /
{% if boolDate|trans == 'futur' %}
<span class="chill-orange">Prochain</span> événement