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,