{#
Partial for displaying the destinataire (adherent) select with favorites UX
- Expects: form.destinataire, favorites (array of IDs)
- Uses select2 with star icons for favorites
- Handles AJAX for adding/removing favorites via external JS/CSS
#}
{# Store favorites data for JavaScript access - properly encoded as HTML attribute #}
{# Use the form_widget to render the select element with proper Symfony integration #}
{{ form_widget(form.destinataire, {
'attr': {
'class': 'form-control favorite-entity-select2',
'data-placeholder': 'Choisissez un adhérent'
}
}) }}
Cliquez sur l'étoile à côté d'un adhérent pour l'ajouter ou le retirer de vos favoris. Les favoris apparaissent en haut de la liste.