Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit ff68769c authored by Levy--Falk Hugo's avatar Levy--Falk Hugo Committed by root

Affiche le rechargement si le moyen de paiement est défini.

parent bbb87882
......@@ -132,7 +132,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>Aucun</td>
{% endif %}
</tr>
{% if user_solde %}
{% if allow_online_payment %}
<tr>
<th>Solde</th>
<td>{{ users.solde }} €
......
......@@ -85,7 +85,7 @@ from users.forms import (
)
from cotisations.models import Facture
from machines.models import Machine
from preferences.models import OptionalUser, GeneralOption
from preferences.models import OptionalUser, GeneralOption, AssoOption
from re2o.views import form
from re2o.utils import (
......@@ -782,6 +782,8 @@ def profil(request, users, userid):
)
options, _created = OptionalUser.objects.get_or_create()
user_solde = options.user_solde
options, _created = AssoOption.objects.get_or_create()
allow_online_payment = options.payment != 'NONE'
return render(
request,
'users/profil.html',
......@@ -792,6 +794,7 @@ def profil(request, users, userid):
'ban_list': bans,
'white_list': whitelists,
'user_solde': user_solde,
'allow_online_payment' : allow_online_payment,
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment