Если вам не совсем удобно заниматься с нами каждый день в нашей онлайн-школе, специально для вас мы
- делаем отдельные уроки в записи, которые вы можете проходить, когда вам будет удобно.
- Учите и развивайте креативное мышление когда и где угодно
+
Подарочный сертификат Lil City - отличный презент на любой праздник.
+А также сертификат можно подарить без повода - развитие
творческого потенциала всегда уместно и актуально.
+При покупке подарочного сертификата мы высылаем письмо,
+где будет уникальный код и уникальная ссылка. Письмо или ссылку
+на него вы можете переслать другому. Сертификатом можно
+воспользоваться, перейдя по ссылке.
Сертификаты
diff --git a/apps/payment/views.py b/apps/payment/views.py
index f10cc218..02a2b874 100644
--- a/apps/payment/views.py
+++ b/apps/payment/views.py
@@ -377,7 +377,10 @@ class GiftCertificateGetView(TemplateView):
template_name = 'payment/gift_certificate_get.html'
def get(self, request, slug, *args, **kwargs):
- ugs = get_object_or_404(UserGiftCertificate, pk=short_url.decode_url(slug))
+ try:
+ ugs = get_object_or_404(UserGiftCertificate, pk=short_url.decode_url(slug))
+ except:
+ raise Http404()
if UserBonus.objects.filter(payment=ugs.payment).exists():
raise Http404()
bonuses = UserBonus.objects.create(user=request.user, amount=ugs.gift_certificate.price,
diff --git a/apps/user/templates/user/profile.html b/apps/user/templates/user/profile.html
index 3970b922..b8e19a19 100644
--- a/apps/user/templates/user/profile.html
+++ b/apps/user/templates/user/profile.html
@@ -2,8 +2,10 @@
-
Редактировать
-
Ввести код
+
{% thumbnail user.photo "120x120" crop="center" as im %}

diff --git a/project/templates/blocks/popup_enter_gift_code.html b/project/templates/blocks/popup_enter_gift_code.html
index 8cbf2b2d..7ad5c256 100644
--- a/project/templates/blocks/popup_enter_gift_code.html
+++ b/project/templates/blocks/popup_enter_gift_code.html
@@ -8,19 +8,16 @@
-
Введите код из подарочного сертификата
-
+
Введите код из подарочного сертификата
+
+
diff --git a/project/templates/blocks/popup_gift_certificate.html b/project/templates/blocks/popup_gift_certificate.html
index a9308a2d..f1d551a8 100644
--- a/project/templates/blocks/popup_gift_certificate.html
+++ b/project/templates/blocks/popup_gift_certificate.html
@@ -8,8 +8,10 @@
{% if user_gift_certificate.user.id != request.user.id %}
-
{{ user_gift_certificate.user.get_full_name }}
+
{{ user_gift_certificate.user.get_full_name }}
подарил{% if user_gift_certificate.user.gender == 'f' %}а{% endif %} вам Сертификат!
+ {% else %}
+
Получите подарочный сертификат на сумму {{ gift_certificate.price|floatformat:"-2" }}₽!
{% endif %}
diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html
index a8ece56c..385b7da0 100644
--- a/project/templates/lilcity/index.html
+++ b/project/templates/lilcity/index.html
@@ -148,6 +148,7 @@
{% if is_gift_certificate_url %}
{% include "templates/blocks/popup_gift_certificate.html" %}
{% endif %}
+ {% include "templates/blocks/popup_enter_gift_code.html" %}
{% include "templates/blocks/popup_course_lock.html" %}
{% include "templates/blocks/popup_subscribe.html" %}
diff --git a/web/src/img/clock.png b/web/src/img/clock.png
new file mode 100644
index 00000000..dd49d20c
Binary files /dev/null and b/web/src/img/clock.png differ
diff --git a/web/src/img/done.png b/web/src/img/done.png
new file mode 100644
index 00000000..28a2934a
Binary files /dev/null and b/web/src/img/done.png differ
diff --git a/web/src/img/fb.png b/web/src/img/fb.png
new file mode 100644
index 00000000..a31cdcd3
Binary files /dev/null and b/web/src/img/fb.png differ
diff --git a/web/src/img/instagram.png b/web/src/img/instagram.png
new file mode 100644
index 00000000..da7043cc
Binary files /dev/null and b/web/src/img/instagram.png differ
diff --git a/web/src/img/twitter.png b/web/src/img/twitter.png
new file mode 100644
index 00000000..9ce49587
Binary files /dev/null and b/web/src/img/twitter.png differ
diff --git a/web/src/js/modules/popup.js b/web/src/js/modules/popup.js
index 35c608aa..46be2206 100644
--- a/web/src/js/modules/popup.js
+++ b/web/src/js/modules/popup.js
@@ -147,9 +147,9 @@ $(document).ready(function () {
const code = $giftCode.val();
if(! code){
$giftError.text('Укажите код');
- return;
+ return false;
}
- // TODO
+ window.location.href = `/gift-certificate/${code}/get`;
});
}
});
diff --git a/web/src/sass/_common.sass b/web/src/sass/_common.sass
index a708728b..98e90895 100755
--- a/web/src/sass/_common.sass
+++ b/web/src/sass/_common.sass
@@ -834,6 +834,11 @@ a[name]
+t
text-align: center
+.subtitle2
+ margin-bottom: 20px
+ font-size: 18px
+ font-weight: bold
+
.text
position: relative
max-width: 620px
@@ -3209,12 +3214,16 @@ a.grey-link
background: transparent
border: 1px solid $gray
color: $gray
- &_edit
- position: absolute
- top: 0
- right: 0
- +m
- display: none !important
+ margin-bottom: 10px
+ width: 100%
+ &__btns
+ position: absolute
+ top: 0
+ right: 0
+ display: flex
+ flex-direction: column
+ +m
+ display: none !important
&__row
display: flex
margin-bottom: 25px