Skip to content

Commit

Permalink
Rename to on checkout app
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoonui authored and crypto-rizzo committed Dec 11, 2023
1 parent 4524763 commit aaeb0ff
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
12 changes: 6 additions & 6 deletions backend/apps/checkout/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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,
},
Expand All @@ -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,
}
Expand Down
20 changes: 10 additions & 10 deletions backend/templates/redesign/checkout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Title -->
<title>{% 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 %}</title>
<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 %}</title>

<!-- Fav icon -->
{% if current_team.whitelabel.favicon %}
<link rel="icon" href="{{ current_team.whitelabel.favicon.url }}">
{% if organizer_team.whitelabel.favicon %}
<link rel="icon" href="{{ organizer_team.whitelabel.favicon.url }}">
{% else %}
<link rel="icon" href="{% static 'images/SocialPass-Icon.svg' %}">
{% endif %}
Expand Down Expand Up @@ -229,19 +229,19 @@
}
</style>

{% if current_team.whitelabel.css %}
{% if organizer_team.whitelabel.css %}
<style type="text/css">
{{ current_team.whitelabel.css }}
{% if current_team.whitelabel.font_regular and current_team.whitelabel.font_bold %}
{{ organizer_team.whitelabel.css }}
{% if organizer_team.whitelabel.font_regular and organizer_team.whitelabel.font_bold %}
@font-face {
font-family: "Custom";
src: url("{{ current_team.whitelabel.font_regular.url }}");
src: url("{{ organizer_team.whitelabel.font_regular.url }}");
font-weight: normal;
}

@font-face {
font-family: "Custom";
src: url("{{ current_team.whitelabel.font_bold.url }}");
src: url("{{ organizer_team.whitelabel.font_bold.url }}");
font-weight: bold;
}

Expand All @@ -261,9 +261,9 @@

<!-- Navbar start -->
<div class="d-flex align-items-center px-3 px-sm-4 py-2">
{% if current_team.whitelabel.logo %}
{% if organizer_team.whitelabel.logo %}
<div class="d-flex align-items-center">
<img src="{{ current_team.whitelabel.logo.url }}" alt="Brand Logo" height="60" class="d-block flex-shrink-0">
<img src="{{ organizer_team.whitelabel.logo.url }}" alt="Brand Logo" height="60" class="d-block flex-shrink-0">
<span class="specific-w-25 mx-1 text-center">
<i class="fa-light fa-times"></i>
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "redesign/checkout/base.html" %}
{% load static i18n %}

{% block head_title %}{{ object.event.title }} - {% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}
{% block head_title %}{{ object.event.title }} - {% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}

{% block content %}
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4">
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/redesign/checkout/checkout_page_two.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "redesign/checkout/base.html" %}
{% load static i18n %}

{% block head_title %}{{ object.event.title }} - {% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}
{% block head_title %}{{ object.event.title }} - {% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}

{% block content %}
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4">
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/redesign/checkout/checkout_paid.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "redesign/checkout/base.html" %}
{% load static i18n %}

{% block head_title %}{{ object.event.title }} - {% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}
{% block head_title %}{{ object.event.title }} - {% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}

{% block content %}
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4">
Expand Down
8 changes: 4 additions & 4 deletions backend/templates/redesign/checkout/get_tickets.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "redesign/checkout/tickets_base.html" %}
{% load static i18n %}

{% block head_title %}{% trans "Get Tickets" %} - {% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}
{% block head_title %}{% trans "Get Tickets" %} - {% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}

{% block tickets %}
{% for ticket in tickets %}
Expand All @@ -19,11 +19,11 @@ <h5 class="m-0">
<div class="p-4 rounded-5 text-bg-info antialiased">
<div class="d-flex justify-content-center pb-3">
<div class="d-flex align-items-center">
{% if current_team.whitelabel.ticket_logo %}
{% if organizer_team.whitelabel.ticket_logo %}
<div
class="specific-w-75 specific-h-75 overflow-hidden d-block me-2"
style="
background-image: url('{{ current_team.whitelabel.ticket_logo.url }}');
background-image: url('{{ organizer_team.whitelabel.ticket_logo.url }}');
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
Expand All @@ -41,7 +41,7 @@ <h5 class="m-0">
></div>
{% endif %}
<strong style="font-size: 28px;">
{% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}
{% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}
</strong>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "redesign/checkout/tickets_base.html" %}
{% load static i18n %}

{% block head_title %}{% trans "Get Tickets" %} - {% if current_team.whitelabel.brand_name %}{{ current_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}
{% block head_title %}{% trans "Get Tickets" %} - {% if organizer_team.whitelabel.brand_name %}{{ organizer_team.whitelabel.brand_name }}{% else %}SocialPass{% endif %}{% endblock head_title %}

{% block content %}
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4">
Expand Down
22 changes: 11 additions & 11 deletions backend/templates/redesign/checkout/tickets_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Title -->
<title>{% 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 %}</title>
<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 %}</title>

<!-- Fav icon -->
{% if current_team.whitelabel.favicon %}
<link rel="icon" href="{{ current_team.whitelabel.favicon.url }}">
{% if organizer_team.whitelabel.favicon %}
<link rel="icon" href="{{ organizer_team.whitelabel.favicon.url }}">
{% else %}
<link rel="icon" href="{% static 'images/SocialPass-Icon.svg' %}">
{% endif %}
Expand All @@ -29,7 +29,7 @@

<!-- SEO -->
<meta name="description" content="Enter your passcode to get your tickets.">
<meta name="author" content="{{ current_team.name }}">
<meta name="author" content="{{ organizer_team.name }}">
<meta property="url" content="{{ request.build_absolute_uri }}">
<meta name="keywords" content="web3, nft, web2, bayc, crypto, ticketing, ticket, events, event hosting, fair, online, digital asset, concert, stadium, wallet, future, creator, transparent, easy, quick, simple,token, tokengate, tokengate, host an event, tickets online">

Expand Down Expand Up @@ -70,19 +70,19 @@
</script>
<!-- End of sociapass support Widget -->

{% if current_team.whitelabel.css %}
{% if organizer_team.whitelabel.css %}
<style type="text/css">
{{ current_team.whitelabel.css }}
{% if current_team.whitelabel.font_regular and current_team.whitelabel.font_bold %}
{{ organizer_team.whitelabel.css }}
{% if organizer_team.whitelabel.font_regular and organizer_team.whitelabel.font_bold %}
@font-face {
font-family: "Custom";
src: url("{{ current_team.whitelabel.font_regular.url }}");
src: url("{{ organizer_team.whitelabel.font_regular.url }}");
font-weight: normal;
}

@font-face {
font-family: "Custom";
src: url("{{ current_team.whitelabel.font_bold.url }}");
src: url("{{ organizer_team.whitelabel.font_bold.url }}");
font-weight: bold;
}

Expand All @@ -104,8 +104,8 @@
<div id="main-container">
<!-- Navbar start -->
<div class="d-flex align-items-center px-3 px-sm-4 py-2">
{% if current_team.whitelabel.logo %}
<img src="{{ current_team.whitelabel.logo.url }}" alt="Brand Logo" height="60" class="d-block">
{% if organizer_team.whitelabel.logo %}
<img src="{{ organizer_team.whitelabel.logo.url }}" alt="Brand Logo" height="60" class="d-block">
{% else %}
<img src="{% static 'images/SVG-05.svg' %}" alt="SocialPass Logo" height="60" class="d-block">
{% endif %}
Expand Down

0 comments on commit aaeb0ff

Please sign in to comment.