Skip to content
Snippets Groups Projects
Commit 354e3606 authored by YvanSv's avatar YvanSv
Browse files

verification que l'utilisateur ait la monnaie nécessaire pour payer

parent ed5c6626
No related branches found
No related tags found
1 merge request!69Master
...@@ -170,6 +170,17 @@ button { ...@@ -170,6 +170,17 @@ button {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 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 { .annonce {
position: relative; position: relative;
} }
......
...@@ -66,12 +66,20 @@ ...@@ -66,12 +66,20 @@
{% else %} {% else %}
{% if annonce.type == "Pret" %} {% if annonce.type == "Pret" %}
{% if user.statusAbonnement() == "0" %} {% if user.statusAbonnement() == "0" %}
<a href="{{ path('app_modif_user_abonnement') }}"><button class="btn-connexion" id="btnRepondre">Améliorer mon abonnement</button></a> <a href="{{ path('app_modif_user_abonnement') }}"><button class="btn-connexion2" id="btnRepondre">Améliorer mon abonnement</button></a>
{% else %} {% 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 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 %} {% endif %}
{% else %} {% 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 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 %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment