Files
d9-eql/web/themes/custom/eql/templates/partials/form.html.twig
T
2025-06-05 13:11:19 +02:00

44 lines
2.3 KiB
Twig

{#
/**
* @file
* Default theme implementation for a 'form' element.
*
* Available variables
* - attributes: A list of HTML attributes for the wrapper element.
* - children: The child elements of the form.
*
* @see template_preprocess_form()
*
* @ingroup themeable
*/
#}
{# <div class="buttons-filtres-ressources">
<a class=" button button-videos" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=693&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Vidéos</a>
<a class="button button-podcasts" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=698&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Podcasts</a>
<a class="button button-reportages-photos" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=695&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Reportages photos</a>
<a class="button button-livres" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=696&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Livres</a>
<a class="button button-articles" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=694&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Articles</a>
<a class="button button-publications-rapports" style="" href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=696&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Publications/rapports</a>
</div> #}
<div class="buttons-filtres-ressources">
{% for item in media_links %}
<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>
<form{{ attributes }}>
{{ children }}
</form>