mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
twig filter format_date need only one argument
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
<p>
|
||||
{{ 'Last opening since %last_opening%'|trans(
|
||||
{ '%last_opening%' : accompanying_period.openingDate|format_date('long', 'none') }) }}
|
||||
{ '%last_opening%' : accompanying_period.openingDate|format_date('long') }) }}
|
||||
</p>
|
||||
|
||||
{% if form.openingDate is defined %}
|
||||
|
@@ -22,11 +22,11 @@
|
||||
<tr>
|
||||
<td>
|
||||
{% if accompanying_period.closingDate == null %}
|
||||
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long', 'none') } ) }}
|
||||
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
|
||||
{% else %}
|
||||
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
|
||||
'%opening_date%': accompanying_period.openingDate|format_date('long', 'none'),
|
||||
'%closing_date%': accompanying_period.closingDate|format_date('long', 'none')}
|
||||
'%opening_date%': accompanying_period.openingDate|format_date('long'),
|
||||
'%closing_date%': accompanying_period.closingDate|format_date('long')}
|
||||
) }}
|
||||
|
||||
{% if accompanying_period.isOpen == false %}
|
||||
|
Reference in New Issue
Block a user