Skip to content
Snippets Groups Projects
Commit e3bccaa8 authored by SAVERGNE Yvan's avatar SAVERGNE Yvan
Browse files

Merge branch 'master' into 'main'

Master

See merge request !69
parents 86818b31 354e3606
No related branches found
No related tags found
1 merge request!69Master
......@@ -170,6 +170,17 @@ button {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.btn-pauvre {
color: white;
width: 500px;
background-color: rgb(85, 85, 85);
border-radius: 5px;
font-size: 20px;
padding: 15px;
margin: 5px;
font-family: "Trebuchet MS",sans-serif;
}
.annonce {
position: relative;
}
......
......@@ -64,7 +64,23 @@
<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-connexion2" id="btnRepondre">Améliorer mon abonnement</button></a>
{% else %}
{% if user.NbFlorains() >= annonce.CoutPrestation %}
<a href="{{ path('app_reserver_prestation', {'id': annonce.id, 'interet': true}) }}"><button class="btn-connexion" id="btnRepondre">Répondre à l'annonce</button></a>
{% else %}
<a href=""><button class="btn-pauvre" id="btnRepondre">Trop pauvre pour payer</button></a>
{% endif %}
{% endif %}
{% else %}
{% if user.nb_florains >= annonce.cout_prestation %}
<a href="{{ path('app_reserver_prestation', {'id': annonce.id, 'interet': true}) }}"><button class="btn-connexion" id="btnRepondre">Répondre à l'annonce</button></a>
{% else %}
<a href=""><button class="btn-connexion" id="btnRepondre">Trop pauvre pour payer</button></a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment