Skip to content

Commit fac2754

Browse files
moacirmodarenzon
authored andcommitted
implementing new bootcamp seller pages. close #2823
1 parent f766051 commit fac2754

File tree

13 files changed

+414
-10
lines changed

13 files changed

+414
-10
lines changed

pythonpro/checkout/templates/checkout/_bootcamp_lp_payment_block.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h5 class="summary-main__group__price__description text-uppercase fw-800 font-hi
1212
<div class="summary-main__group__price__group summary-main__group__price__group--top">
1313
<div class="summary-main__group__price__group__info">
1414
<img class="summary-main__group__price__group__info__icon" src="{% static 'img/spp/summary-main/summary-price-icon.jpg' %}" alt="Ícone com símbolo de porcentagem com fundo transparente e bordas verdes">
15-
<h6 class="summary-main__group__price__group__info__title fw-700 text-uppercase text-blue font-highlighted">Promoção do primeiro dia</h6>
15+
<h6 class="summary-main__group__price__group__info__title fw-700 text-uppercase text-blue font-highlighted">Promoção do dia de hoje</h6>
1616
</div>
1717

1818
<div class="summary-main__group__price__group__value">
@@ -52,7 +52,11 @@ <h6 class="summary-main__group__price__group__info__title fw-700 text-uppercase
5252
{% if not user.is_authenticated %}
5353
<div>
5454
<h4 class="summary-main__group__price__login fw-400">
55-
(Se você comprou o Django Pro, <a class="text-blue" href="{{ login_url }}">faça o login</a> para ganhar um desconto)
55+
(Se você comprou o Django Pro,
56+
<a class="text-blue"
57+
href="{% url 'two_factor:login' %}?next={% url 'checkout:bootcamp_lp' %}"
58+
>faça o login</a>
59+
para ganhar um desconto)
5660
</h4>
5761
</div>
5862
{% endif %}

pythonpro/checkout/templates/checkout/bootcamp_lp_d1.html

Lines changed: 395 additions & 0 deletions
Large diffs are not rendered by default.

pythonpro/checkout/templates/checkout/bootcamp_lp_d3.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
{% load static %}
33
{% load django_pagarme %}
44
{% load bootstrap4 %}
5+
6+
{% block vsl %}https://www.youtube.com/embed/rwxY_WjIjEE{% endblock vsl %}

pythonpro/checkout/templates/checkout/bootcamp_lp_subscription_open.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ <h2 class="header-main__group__subtitle fw-300">Assista o vídeo abaixo e descub
6262
<div class="header-main__green"></div>
6363
</header>
6464

65+
{% block main %}
6566
<main role="main">
6667
<section class="method-main">
6768
<div class="method-main__group">
@@ -1349,6 +1350,7 @@ <h2 class="countdown-main__group__title text-uppercase text-white fw-800"><span
13491350
</div>
13501351
</section>
13511352
</main>
1353+
{% endblock main %}
13521354

13531355
<footer class="footer">
13541356
<div class="footer__group">

pythonpro/checkout/tests/test_bootcamp_lp_when_subscription_open.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_no_user_with_50_discount(resp_no_user_with_50_discount):
8585
assert resp_no_user_with_50_discount.context['has_first_day_discount'] is True
8686
assert resp_no_user_with_50_discount.context['has_client_discount'] is False
8787
dj_assert_contains(resp_no_user_with_50_discount, 'R$ 99,63')
88-
discount_video = 'https://www.youtube.com/embed/0rzm6NjyoSw'
88+
discount_video = 'https://www.youtube.com/embed/lIWmM0j-WdM'
8989
dj_assert_contains(resp_no_user_with_50_discount, discount_video)
9090

9191

@@ -102,7 +102,7 @@ def test_no_user_with_35_discount(resp_no_user_with_35_discount):
102102
assert resp_no_user_with_35_discount.context['has_first_day_discount'] is True
103103
assert resp_no_user_with_35_discount.context['has_client_discount'] is False
104104
dj_assert_contains(resp_no_user_with_35_discount, 'R$ 129,61')
105-
discount_video = 'https://www.youtube.com/embed/0rzm6NjyoSw'
105+
discount_video = 'https://www.youtube.com/embed/41DjlWEbT1M'
106106
dj_assert_contains(resp_no_user_with_35_discount, discount_video)
107107

108108

@@ -147,7 +147,7 @@ def test_webdev_after_discount(client_with_webdev, logged_user, tag_as_mock, fre
147147
assert resp.context['first_day_discount'] == 0
148148
assert resp.context['has_first_day_discount'] is False
149149
assert resp.context['has_client_discount'] is True
150-
no_discount_video = 'https://www.youtube.com/embed/g-C_5oUCz2A'
150+
no_discount_video = 'https://www.youtube.com/embed/rwxY_WjIjEE'
151151
dj_assert_contains(resp, no_discount_video)
152152
dj_assert_contains(resp, 'R$ 199,56')
153153

pythonpro/checkout/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def webdev_landing_page(request):
281281

282282

283283
def _render_with_webdev_and_first_day_discounts(
284-
request, client_discount_slug, first_day_discount_slug, promotion_end_date,
284+
request, client_discount_slug, first_day_discount_slug, promotion_end_date,
285285
template_name='checkout/bootcamp_lp_subscription_open.html'
286286
):
287287
user_facade.visit_member_landing_page(request.user, source=request.GET.get('utm_source', default='unknown'))
7.42 KB
Loading
4.82 KB
Loading
46.4 KB
Loading
9.47 KB
Loading

0 commit comments

Comments
 (0)