diff --git a/templates/annonce_detail/annonce.html.twig b/templates/annonce_detail/annonce.html.twig index ce2364e0efe285b5a14a4711e88ed20f5aba07d8..c7cb063c3a4d2abe4c414580cb66683ac4aaac5d 100644 --- a/templates/annonce_detail/annonce.html.twig +++ b/templates/annonce_detail/annonce.html.twig @@ -64,7 +64,15 @@ <a href=""><button class="btn-connexion2" id="btnListeAttente">Se mettre en liste d'attente</button></a> {% endif %} {% else %} - <a href="{{ path('app_reserver_prestation', {'id': annonce.id, 'interet': true}) }}"><button class="btn-connexion" id="btnRepondre">Répondre à l'annonce</button></a> + {% if annonce.type == "Pret" %} + {% if user.statusAbonnement() == "0" %} + <a href="{{ path('app_modif_user_abonnement') }}"><button class="btn-connexion" id="btnRepondre">Améliorer mon abonnement</button></a> + {% else %} + <a href="{{ path('app_reserver_prestation', {'id': annonce.id, 'interet': true}) }}"><button class="btn-connexion" id="btnRepondre">Répondre à l'annonce</button></a> + {% endif %} + {% else %} + <a href="{{ path('app_reserver_prestation', {'id': annonce.id, 'interet': true}) }}"><button class="btn-connexion" id="btnRepondre">Répondre à l'annonce</button></a> + {% endif %} {% endif %} {% endif %} {% endif %}