Bonjour,
J'ai besoin de votre aide pour régler ce problème.
Dans ma page twig j'ai mis une boucle switch en dessous de if , le tout dans une boucle for .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% for option in options %}
 
            {% if option.gosFkGarantieSouscrit.getGasId()==garantieSouscrite.gasId %}
 
                {% if   option.gosListeValeur   %}
 
 
                  {% switch option.gosLibelleOption %}
 
                    {% case "Taux de couverture" %}
                        <b> {{option.gosLibelleOption}}</b>: {{option.gosListeValeur}}%<br>  
                    {% case "Suit le statut" || "Majoration cause décès"%}
                        <b> {{option.gosLibelleOption}}</b>: {{suivreStatut[option.gosListeValeur]}}<br> 
                    {% default %}
                        <b> {{option.gosLibelleOption}}</b>: {{option.gosListeValeur}}<br>
 
 
                  {% endswitch %}
 
 
                {% endif %}
            {% endif %}
 
         {% endfor %}
l'erreur c'est :
Unexpected "switch" tag (expecting closing tag for the "if" tag defined near line 123).


Quelqu'un pourrait m'aider ? merci