change twig button media

This commit is contained in:
2025-06-05 11:42:47 +02:00
parent eca756315f
commit e65412f9fc
3 changed files with 66 additions and 88 deletions
@@ -27,11 +27,12 @@
<div class="buttons-filtres-ressources">
{% for item in media_links %}
<button class="button-{{ item.slug }}{% if item.active %} is-active{% endif %}" type="button">
<a href="{{ path('<front>') ~ 'ressources?field_type_de_media_target_id=' ~ item.tid ~ '&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=' }}">
{{ item.label }}
</a>
</button>
<a
class="button button-{{ item.slug }}{% if item.active %} is-active{% endif %}"
href="{{ path('<front>') ~ 'ressources?field_type_de_media_target_id=' ~ item.tid ~ '&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=' }}"
>
{{ item.label }}
</a>
{% endfor %}
</div>