{# Boutons de sélection du type de dommage pour l'inspection véhicule. Params: controller: nom du contrôleur Stimulus (défaut: 'inspection') Usage : {% include 'components/_damage_type_buttons.html.twig' %} {% include 'components/_damage_type_buttons.html.twig' with { controller: 'contract-create' } %} #} {% set ctrl = controller ?? 'inspection' %} {% set action_select = 'click->' ~ ctrl ~ '#inspectionSelectType' %} {% if ctrl == 'inspection' %}{% set action_select = 'click->inspection#selectType' %}{% endif %}