diff --git a/backend/apps/checkout/views.py b/backend/apps/checkout/views.py index b1e35cc57..8c1159cf4 100644 --- a/backend/apps/checkout/views.py +++ b/backend/apps/checkout/views.py @@ -181,7 +181,7 @@ def get_context_data(self, *args, **kwargs): # Set everything to context context["checkout_type"] = checkout_type - context["current_team"] = self.object.team + context["organizer_team"] = self.object.team context["is_team_member"] = is_team_member context["sales_start_with_tzinfo"] = sales_start context["sales_status"] = sales_status @@ -295,7 +295,7 @@ def get_context_data(self, *args, **kwargs): context["form"] = CheckoutFormAssetOwnership( initial={"name": self.object.name, "email": self.object.email} ) - context["current_team"] = self.object.event.team + context["organizer_team"] = self.object.event.team return context def get(self, *args, **kwargs): @@ -447,7 +447,7 @@ def get_context_data(self, *args, **kwargs): context["form"] = CheckoutFormFiat( initial={"name": self.object.name, "email": self.object.email} ) - context["current_team"] = self.object.event.team + context["organizer_team"] = self.object.event.team return context def get(self, *args, **kwargs): @@ -706,7 +706,7 @@ def get_object(self): def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) context["checkout_items"] = self.object.checkoutitem_set.all() - context["current_team"] = self.object.event.team + context["organizer_team"] = self.object.event.team return context @@ -738,7 +738,7 @@ def get(self, *args, **kwargs): self.request, "redesign/checkout/get_tickets_passcode.html", { - "current_team": checkout_session.event.team, + "organizer_team": checkout_session.event.team, "checkout_session": checkout_session, "passcode_form": passcode_form, }, @@ -752,7 +752,7 @@ def post(self, *args, **kwargs): passcode_form = PasscodeForm() template_name = "get_tickets_passcode.html" ctx = { - "current_team": checkout_session.event.team, + "organizer_team": checkout_session.event.team, "checkout_session": checkout_session, "passcode_form": passcode_form, } diff --git a/backend/templates/redesign/checkout/base.html b/backend/templates/redesign/checkout/base.html index fcbfbad39..09c21971f 100644 --- a/backend/templates/redesign/checkout/base.html +++ b/backend/templates/redesign/checkout/base.html @@ -9,11 +9,11 @@ - {% block head_title %}{% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %} - {% trans "Hosting the Next Generation of Events" %}{% endblock head_title %} + {% block head_title %}{% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %} - {% trans "Hosting the Next Generation of Events" %}{% endblock head_title %} - {% if current_team.whitelabel.favicon %} - + {% if organizer_team.whitelabel.favicon %} + {% else %} {% endif %} @@ -229,19 +229,19 @@ } - {% if current_team.whitelabel.css %} + {% if organizer_team.whitelabel.css %}