mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-29 20:44:24 +00:00
Merge branch 'disable_CB' into 'master'
Allow disabling CB in crisis time See merge request !100
This commit is contained in:
commit
6c66ae6b39
@ -28,12 +28,14 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
</table>
|
</table>
|
||||||
<p><strong>Total: </strong>{{ basket.get_total() }} €</p>
|
<p><strong>Total: </strong>{{ basket.get_total() }} €</p>
|
||||||
|
{% if settings.SITH_EBOUTIC_CB_ENABLED %}
|
||||||
<form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}">
|
<form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}">
|
||||||
{% for (field_name,field_value) in et_request.items() -%}
|
{% for (field_name,field_value) in et_request.items() -%}
|
||||||
<input type="hidden" name="{{ field_name }}" value="{{ field_value }}">
|
<input type="hidden" name="{{ field_name }}" value="{{ field_value }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<input type="submit" value="{% trans %}Pay with credit card{% endtrans %}" />
|
<input type="submit" value="{% trans %}Pay with credit card{% endtrans %}" />
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
{% if basket.items.filter(type_id=settings.SITH_COUNTER_PRODUCTTYPE_REFILLING).exists() %}
|
{% if basket.items.filter(type_id=settings.SITH_COUNTER_PRODUCTTYPE_REFILLING).exists() %}
|
||||||
<p>{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}</p>
|
<p>{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -526,6 +526,7 @@ SITH_LAST_OPERATIONS_LIMIT = 10
|
|||||||
SITH_COUNTER_MINUTE_INACTIVE = 10
|
SITH_COUNTER_MINUTE_INACTIVE = 10
|
||||||
|
|
||||||
# ET variables
|
# ET variables
|
||||||
|
SITH_EBOUTIC_CB_ENABLED = True
|
||||||
SITH_EBOUTIC_ET_URL = "https://preprod-tpeweb.e-transactions.fr/cgi/MYchoix_pagepaiement.cgi"
|
SITH_EBOUTIC_ET_URL = "https://preprod-tpeweb.e-transactions.fr/cgi/MYchoix_pagepaiement.cgi"
|
||||||
SITH_EBOUTIC_PBX_SITE = "4000666"
|
SITH_EBOUTIC_PBX_SITE = "4000666"
|
||||||
SITH_EBOUTIC_PBX_RANG = "42"
|
SITH_EBOUTIC_PBX_RANG = "42"
|
||||||
|
Loading…
Reference in New Issue
Block a user