Browse Source

Montant minimal de rechargement + refactor de la fonction payment + self adhesion

test-front-curly
Gabriel Detraz 8 years ago
committed by root
parent
commit
208d703d95
  1. 5
      cotisations/views.py
  2. 4
      preferences/templates/preferences/display_preferences.html

5
cotisations/views.py

@ -711,11 +711,6 @@ 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)

4
preferences/templates/preferences/display_preferences.html

@ -56,10 +56,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ useroptions.all_can_create }}</td> <td>{{ useroptions.all_can_create }}</td>
<th>Auto inscription</th> <th>Auto inscription</th>
<td>{{ useroptions.self_adhesion }}</td> <td>{{ useroptions.self_adhesion }}</td>
{% if useroptions.user_solde %}
<th>Solde maximum</th>
<td>{{ useroptions.max_solde }}</td>
{% endif %}
</tr> </tr>
{% if useroptions.user_solde %} {% if useroptions.user_solde %}
<tr> <tr>

Loading…
Cancel
Save