From 732cb53fb37f9aecb35f681638fd8bb02728bc07 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 30 Jan 2024 19:10:28 +0100 Subject: [PATCH] add template setem --- promotion/templates/select_wallet_setem.html | 93 ++++++++++++++++++++ promotion/views.py | 6 +- 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 promotion/templates/select_wallet_setem.html diff --git a/promotion/templates/select_wallet_setem.html b/promotion/templates/select_wallet_setem.html new file mode 100644 index 0000000..5861f15 --- /dev/null +++ b/promotion/templates/select_wallet_setem.html @@ -0,0 +1,93 @@ +{% load i18n static %} + + + + + + + + + + {% block title %}{% if title %}{{ title }} – {% endif %}Setem{% endblock %} + + + + + + + + + + + + + + + +
+
+
+ {% for message in messages %} + + {% endfor %} + +
+
+
+
+
+
+ {% load i18n %} + {% load django_bootstrap5 %} +
+ {% csrf_token %} +
+
+ {% bootstrap_form form %} +
+
+
+ +
+ +
+
+
+ +
+
+ +
+
+
+ + + + + + + diff --git a/promotion/views.py b/promotion/views.py index b88d8f5..996314f 100644 --- a/promotion/views.py +++ b/promotion/views.py @@ -104,7 +104,11 @@ class SelectWalletView(FormView): template_name = "select_wallet.html" form_class = WalletForm success_url = reverse_lazy('promotion:select_wallet') - # def get(self, request, *args, **kwargs): + def get(self, request, *args, **kwargs): + if settings.ORGANIZATION == 'Setem': + self.template_name = "select_wallet_setem.html" + return super().get(request, *args, **kwargs) + # self.context = {'form': fo} # template = get_template( # self.template_name,