Skip to content

Refonte visuelle des pages des societés membres - #2376

Open
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:front/refonte-profil-societe-membre
Open

Refonte visuelle des pages des societés membres#2376
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:front/refonte-profil-societe-membre

Conversation

@vgreb

@vgreb vgreb commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Liste des sociétés membres

Avant Après
Screenshot 2026-08-28 at 21-02-27 Les entreprises adhérentes à l'AFUP Screenshot 2026-08-28 at 21-01-11 Les entreprises adhérentes à l'AFUP

Page profil d'une société

Avant Après
Screenshot 2026-08-28 at 21-02-45 Les-Tilleuls coop est adhérente à l'AFUP Screenshot 2026-08-28 at 21-00-43 Les-Tilleuls coop est adhérente à l'AFUP

Le sous-menu

MainMenu ne construisait sa barre secondaire qu'à partir de l'arbre CMS. Les pages sans feuille associée, dont /profile/company, ne pouvaient donc pas en afficher — le legacy passait par
site/secondary_menu.html.twig, sans équivalent dans le nouveau layout.

Le CMS reste la source par défaut, la surcharge ne prend le dessus que si on défini le contenu du block submenu.
Aucune page existante ne change.

@stakovicz stakovicz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est chouette, bravo !

},
) -%}
<div class="px-4 pt-3">
<a {{ attributes }} class="{{ style.apply({variant})|tailwind_merge }}">{%- block content %}{% endblock -%}</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a {{ attributes }} class="{{ style.apply({variant})|tailwind_merge }}">{%- block content %}{% endblock -%}</a>
<a class="{{ style.apply({variant}, attributes.render('class'))|tailwind_merge }}" {{ attributes }}>{%- block content %}{% endblock -%}</a>

Sinon tu as 2 attributs class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants