mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +00:00
Rechargement via comnpay du solde.
This commit is contained in:
parent
60696dbba1
commit
5b5e9b997c
3 changed files with 8 additions and 3 deletions
|
@ -711,6 +711,11 @@ def recharge(request):
|
||||||
number=1,
|
number=1,
|
||||||
)
|
)
|
||||||
v.save()
|
v.save()
|
||||||
|
<<<<<<< HEAD
|
||||||
content = payment.PAYMENT_SYSTEM[options.payment](facture, request)
|
content = payment.PAYMENT_SYSTEM[options.payment](facture, request)
|
||||||
|
=======
|
||||||
|
options, _created = AssoOption.objects.get_or_create()
|
||||||
|
content = payment.PAYMENT_SYSTEM[options.payment](facture, request.get_host())
|
||||||
|
>>>>>>> Rechargement via comnpay du solde.
|
||||||
return render(request, 'cotisations/payment.html', content)
|
return render(request, 'cotisations/payment.html', content)
|
||||||
return form({'rechargeform':f}, 'cotisations/recharge.html', request)
|
return form({'rechargeform':f}, 'cotisations/recharge.html', request)
|
||||||
|
|
|
@ -55,7 +55,7 @@ class OptionalUser(models.Model):
|
||||||
max_recharge = models.DecimalField(
|
max_recharge = models.DecimalField(
|
||||||
max_digits=5,
|
max_digits=5,
|
||||||
decimal_places=2,
|
decimal_places=2,
|
||||||
default=100
|
default=50
|
||||||
)
|
)
|
||||||
gpg_fingerprint = models.BooleanField(default=True)
|
gpg_fingerprint = models.BooleanField(default=True)
|
||||||
all_can_create = models.BooleanField(
|
all_can_create = models.BooleanField(
|
||||||
|
|
|
@ -57,8 +57,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<th>Auto inscription</th>
|
<th>Auto inscription</th>
|
||||||
<td>{{ useroptions.self_adhesion }}</td>
|
<td>{{ useroptions.self_adhesion }}</td>
|
||||||
{% if useroptions.user_solde %}
|
{% if useroptions.user_solde %}
|
||||||
<th>Rechargement max</th>
|
<th>Solde maximum</th>
|
||||||
<td>{{ useroptions.max_recharge }}</td>
|
<td>{{ useroptions.max_solde }}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% if useroptions.user_solde %}
|
{% if useroptions.user_solde %}
|
||||||
|
|
Loading…
Reference in a new issue