mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-25 04:55:01 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
623e3cdbff | ||
|
|
d11b32ef2d |
@@ -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 conditions{% endtrans%}</a>
|
||||||
|
{%trans%}of the student assosiation of 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 conditions{% endtrans%}</a>
|
||||||
|
{%trans%}of the student assosiation of 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 %}
|
||||||
|
|||||||
@@ -116,56 +116,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section>
|
|
||||||
<div class="category-header">
|
|
||||||
<h3 class="margin-bottom">{% trans %}Eurockéennes 2025 partnership{% endtrans %}</h3>
|
|
||||||
{% if user.is_subscribed %}
|
|
||||||
<div id="eurock-partner" style="
|
|
||||||
min-height: 600px;
|
|
||||||
background-color: lightgrey;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
">
|
|
||||||
<p style="text-align: center;">
|
|
||||||
{% trans trimmed %}
|
|
||||||
Our partner uses Weezevent to sell tickets.
|
|
||||||
Weezevent may collect user info according to
|
|
||||||
its own privacy policy.
|
|
||||||
By clicking the accept button you consent to
|
|
||||||
their terms of services.
|
|
||||||
{% endtrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<a href="https://weezevent.com/fr/politique-de-confidentialite/">{% trans %}Privacy policy{% endtrans %}</a>
|
|
||||||
|
|
||||||
<button
|
|
||||||
hx-get="{{ url("eboutic:eurock") }}"
|
|
||||||
hx-target="#eurock-partner"
|
|
||||||
hx-swap="outerHTML"
|
|
||||||
hx-trigger="click, load[document.cookie.includes('weezevent_accept=true')]"
|
|
||||||
@htmx:after-request="document.cookie = 'weezevent_accept=true'"
|
|
||||||
>{% trans %}Accept{% endtrans %}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<p>
|
|
||||||
{%- trans trimmed %}
|
|
||||||
You must be subscribed to benefit from the partnership with the Eurockéennes.
|
|
||||||
{% endtrans -%}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{%- trans trimmed %}
|
|
||||||
This partnership offers a discount of up to 33%
|
|
||||||
on tickets for Friday, Saturday and Sunday,
|
|
||||||
as well as the 3-day package from Friday to Sunday.
|
|
||||||
{% endtrans -%}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{% for priority_groups in products|groupby('order') %}
|
{% for priority_groups in products|groupby('order') %}
|
||||||
{% for category, items in priority_groups.list|groupby('category') %}
|
{% for category, items in priority_groups.list|groupby('category') %}
|
||||||
{% if items|count > 0 %}
|
{% if items|count > 0 %}
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
<a title="Logiciel billetterie en ligne"
|
|
||||||
href="https://www.weezevent.com?c=sys_widget"
|
|
||||||
class="weezevent-widget-integration"
|
|
||||||
target="_blank"
|
|
||||||
data-src="https://widget.weezevent.com/ticket/8aaba226-f7a3-4192-a64e-72ff8f5b35b7?id_evenement=1419869&locale=fr-FR&code=28747"
|
|
||||||
data-width="650"
|
|
||||||
data-height="600"
|
|
||||||
data-resize="1"
|
|
||||||
data-nopb="0"
|
|
||||||
data-type="neo"
|
|
||||||
data-width_auto="1"
|
|
||||||
data-noscroll="0"
|
|
||||||
data-id="1419869">
|
|
||||||
Billetterie Weezevent
|
|
||||||
</a>
|
|
||||||
<script type="text/javascript" src="https://widget.weezevent.com/weez.js" async defer></script>
|
|
||||||
17
eboutic/templates/eboutic/eurok_fragment.jinja
Normal file
17
eboutic/templates/eboutic/eurok_fragment.jinja
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<a
|
||||||
|
title="Logiciel billetterie en ligne"
|
||||||
|
href="https://widget.weezevent.com/ticket/6ef65533-f5b0-4571-9d21-1f1bc63921f0?id_evenement=1211855&locale=fr-FR&code=34146"
|
||||||
|
class="weezevent-widget-integration"
|
||||||
|
target="_blank"
|
||||||
|
data-src="https://widget.weezevent.com/ticket/6ef65533-f5b0-4571-9d21-1f1bc63921f0?id_evenement=1211855&locale=fr-FR&code=34146"
|
||||||
|
data-width="650"
|
||||||
|
data-height="600"
|
||||||
|
data-resize="1"
|
||||||
|
data-nopb="0"
|
||||||
|
data-type="neo"
|
||||||
|
data-width_auto="1"
|
||||||
|
data-noscroll="0"
|
||||||
|
data-id="1211855">
|
||||||
|
Billetterie Weezevent
|
||||||
|
</a>
|
||||||
|
<script type="text/javascript" src="https://widget.weezevent.com/weez.js" async defer></script>
|
||||||
@@ -31,7 +31,6 @@ from eboutic.views import (
|
|||||||
EbouticMainView,
|
EbouticMainView,
|
||||||
EbouticPayWithSith,
|
EbouticPayWithSith,
|
||||||
EtransactionAutoAnswer,
|
EtransactionAutoAnswer,
|
||||||
EurockPartnerFragment,
|
|
||||||
payment_result,
|
payment_result,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -51,5 +50,4 @@ urlpatterns = [
|
|||||||
EtransactionAutoAnswer.as_view(),
|
EtransactionAutoAnswer.as_view(),
|
||||||
name="etransation_autoanswer",
|
name="etransation_autoanswer",
|
||||||
),
|
),
|
||||||
path("eurock/", EurockPartnerFragment.as_view(), name="eurock"),
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ from django.shortcuts import redirect, render
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from django.views.decorators.http import require_GET
|
from django.views.decorators.http import require_GET
|
||||||
from django.views.generic import DetailView, FormView, TemplateView, UpdateView, View
|
from django.views.generic import DetailView, FormView, UpdateView, View
|
||||||
from django.views.generic.edit import SingleObjectMixin
|
from django.views.generic.edit import SingleObjectMixin
|
||||||
from django_countries.fields import Country
|
from django_countries.fields import Country
|
||||||
|
|
||||||
from core.auth.mixins import CanViewMixin, IsSubscriberMixin
|
from core.auth.mixins import CanViewMixin
|
||||||
from core.views.mixins import FragmentMixin, UseFragmentsMixin
|
from core.views.mixins import FragmentMixin, UseFragmentsMixin
|
||||||
from counter.forms import BaseBasketForm, BasketProductForm, BillingInfoForm
|
from counter.forms import BaseBasketForm, BasketProductForm, BillingInfoForm
|
||||||
from counter.models import (
|
from counter.models import (
|
||||||
@@ -350,7 +350,3 @@ class EtransactionAutoAnswer(View):
|
|||||||
return HttpResponse(
|
return HttpResponse(
|
||||||
"Payment failed with error: " + request.GET["Error"], status=202
|
"Payment failed with error: " + request.GET["Error"], status=202
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class EurockPartnerFragment(IsSubscriberMixin, TemplateView):
|
|
||||||
template_name = "eboutic/eurock_fragment.jinja"
|
|
||||||
|
|||||||
@@ -4214,6 +4214,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 conditions"
|
||||||
|
msgstr "les conditions générales de vente"
|
||||||
|
|
||||||
|
#: eboutic/views.py
|
||||||
|
msgid "of the student assosiation of UTBM"
|
||||||
|
msgstr "de l'Association des étudiants 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."
|
||||||
@@ -5838,39 +5850,3 @@ msgstr "Vous ne pouvez plus écrire de commentaires, la date est passée."
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "Maximum characters: %(max_length)s"
|
msgid "Maximum characters: %(max_length)s"
|
||||||
msgstr "Nombre de caractères max: %(max_length)s"
|
msgstr "Nombre de caractères max: %(max_length)s"
|
||||||
|
|
||||||
#: eboutic/templates/eboutic/eboutic_main.jinja
|
|
||||||
msgid "Eurockéennes 2025 partnership"
|
|
||||||
msgstr "Partenariat Eurockéennes 2025"
|
|
||||||
|
|
||||||
#: eboutic/templates/eboutic/eboutic_main.jinja
|
|
||||||
msgid ""
|
|
||||||
"Our partner uses Weezevent to sell tickets. Weezevent may collect user info "
|
|
||||||
"according to its own privacy policy. By clicking the accept button you "
|
|
||||||
"consent to their terms of services."
|
|
||||||
msgstr ""
|
|
||||||
"Notre partenaire utilises Wezevent pour vendre ses billets. Weezevent peut "
|
|
||||||
"collecter des informations utilisateur conformément à sa propre politique de "
|
|
||||||
"confidentialité. En cliquant sur le bouton d'acceptation vous consentez à "
|
|
||||||
"leurs termes de service."
|
|
||||||
|
|
||||||
#: eboutic/templates/eboutic/eboutic_main.jinja
|
|
||||||
msgid "Privacy policy"
|
|
||||||
msgstr "Politique de confidentialité"
|
|
||||||
|
|
||||||
#: eboutic/templates/eboutic/eboutic_main.jinja
|
|
||||||
msgid ""
|
|
||||||
"You must be subscribed to benefit from the partnership with the Eurockéennes."
|
|
||||||
msgstr ""
|
|
||||||
"Vous devez être cotisant pour bénéficier du partenariat avec les "
|
|
||||||
"Eurockéennes."
|
|
||||||
|
|
||||||
#: eboutic/templates/eboutic/eboutic_main.jinja
|
|
||||||
#, python-format
|
|
||||||
msgid ""
|
|
||||||
"This partnership offers a discount of up to 33%% on tickets for Friday, "
|
|
||||||
"Saturday and Sunday, as well as the 3-day package from Friday to Sunday."
|
|
||||||
msgstr ""
|
|
||||||
"Ce partenariat permet de profiter d'une réduction jusqu'à 33%% sur les "
|
|
||||||
"billets du vendredi, du samedi et du dimanche, ainsi qu'au forfait 3 jours, "
|
|
||||||
"du vendredi au dimanche."
|
|
||||||
|
|||||||
Reference in New Issue
Block a user