add button for general term and condition

This commit is contained in:
TitouanDor
2026-03-04 15:17:39 +01:00
parent 71ed7cdf7d
commit 1c101d4b28
2 changed files with 24 additions and 0 deletions

View File

@@ -68,6 +68,12 @@
<template x-for="[key, value] in Object.entries(data)" :key="key"> <template x-for="[key, value] in Object.entries(data)" :key="key">
<input type="hidden" :name="key" :value="value"> <input type="hidden" :name="key" :value="value">
</template> </template>
<input type="checkbox" value="cgv" required>
<label>
{% trans trimmed %}I have read and accept {% endtrans %}
<a href="">{% trans %}the general terms and condition{% endtrans%}</a>
{%trans%}of the student assosiation of the UTBM{% endtrans %}</label>
<br>
<input <input
x-cloak x-cloak
type="submit" type="submit"
@@ -93,6 +99,12 @@
{% else %} {% else %}
<form method="post" action="{{ url('eboutic:pay_with_sith', basket_id=basket.id) }}" name="sith-pay-form"> <form method="post" action="{{ url('eboutic:pay_with_sith', basket_id=basket.id) }}" name="sith-pay-form">
{% csrf_token %} {% csrf_token %}
<input type="checkbox" value="cgv" required>
<label>
{% trans trimmed %}I have read and accept {% endtrans %}
<a href="">{% trans %}the general terms and condition{% endtrans%}</a>
{%trans%}of the student assosiation of the UTBM{% endtrans %}</label>
<br>
<input class="btn btn-blue" type="submit" value="{% trans %}Pay with Sith account{% endtrans %}"/> <input class="btn btn-blue" type="submit" value="{% trans %}Pay with Sith account{% endtrans %}"/>
</form> </form>
{% endif %} {% endif %}

View File

@@ -4053,6 +4053,18 @@ msgstr ""
msgid "You can't buy a refilling with sith money" msgid "You can't buy a refilling with sith money"
msgstr "Vous ne pouvez pas acheter un rechargement avec de l'argent du sith" msgstr "Vous ne pouvez pas acheter un rechargement avec de l'argent du sith"
#: eboutic/views.py
msgid "I have read and accept"
msgstr "J'ai lu et j'accepte"
#: eboutic/views.py
msgid "the general terms and condition"
msgstr "les conditions générale de vente"
#: eboutic/views.py
msgid "of the student assosiation of the UTBM"
msgstr "de l'Association des étudiant de l'UTBM"
#: election/forms.py #: election/forms.py
msgid "You have selected too many candidates." msgid "You have selected too many candidates."
msgstr "Vous avez sélectionné trop de candidats." msgstr "Vous avez sélectionné trop de candidats."