2024-03-19 18:20:53 +01:00
|
|
|
{{* -*- brindille -*- *}}
|
|
|
|
|
|
|
|
{{*
|
|
|
|
vérifier que la date est située dans un exercice ouvert
|
|
|
|
paramètres :
|
|
|
|
- date
|
|
|
|
résultat : open_years, selected_year, selected_chart
|
|
|
|
*}}
|
|
|
|
|
2024-12-12 18:48:37 +01:00
|
|
|
{{*:debug check::date=$date*}}
|
2024-03-19 18:20:53 +01:00
|
|
|
{{:assign open_years=""}}
|
2024-12-12 18:48:37 +01:00
|
|
|
{{#years status=false}}
|
2024-03-19 18:20:53 +01:00
|
|
|
{{:assign open_years=$open_years|cat:"\n"|cat:" - "|cat:$label|cat:" : "}}
|
|
|
|
{{:assign debut=$start_date|date_short}}
|
|
|
|
{{:assign fin=$end_date|date_short}}
|
|
|
|
{{:assign open_years=$open_years|cat:$debut|cat:" à "|cat:$fin}}
|
|
|
|
{{if
|
|
|
|
$start_date|strtotime <= $date|parse_date|strtotime &&
|
|
|
|
$end_date|strtotime >= $date|parse_date|strtotime
|
|
|
|
}}
|
|
|
|
{{:assign selected_year=$id}}
|
|
|
|
{{:assign selected_chart=$id_chart}}
|
|
|
|
{{/if}}
|
|
|
|
{{/years}}
|