Newer
Older
Eric Bremner
committed
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
Eric Bremner
committed
} %}
{% else %}
{% for d in date %}
{% if loop.index0 == 0 %}
<details class="uw-date-details">
<summary role="button" aria-controls="edit-future-dates-collapsible" aria-expanded="false" aria-pressed="false" class="uw-date-details__summary">
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
'date': d
}%}
</summary>
{% else %}
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
'date': d
}%}
{% endif %}
{% if loop.last %}
</details>
{% endif %}
{% endfor %}
Eric Bremner
committed
{% endif %}