diff --git a/apps/course/migrations/0046_auto_20181009_2334.py b/apps/course/migrations/0046_auto_20181009_2334.py new file mode 100644 index 00000000..276f91fa --- /dev/null +++ b/apps/course/migrations/0046_auto_20181009_2334.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.6 on 2018-10-09 23:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('course', '0045_merge_20180926_0200'), + ] + + operations = [ + migrations.AlterField( + model_name='course', + name='age', + field=models.SmallIntegerField(choices=[(0, 'Любой возраст'), (1, 'до 5'), (2, '5-10'), (3, '10-18'), (4, 'от 18')], default=0), + ), + ] diff --git a/apps/user/templates/blocks/profile-menu.html b/apps/user/templates/blocks/profile-menu.html index 5bb21b94..b5b17b83 100644 --- a/apps/user/templates/blocks/profile-menu.html +++ b/apps/user/templates/blocks/profile-menu.html @@ -7,8 +7,6 @@ href="{% url 'user-edit-notifications' %}">Уведомления Платежи - - diff --git a/apps/user/templates/user/bonus-history.html b/apps/user/templates/user/bonus-history.html index cfddee9d..f98474bb 100644 --- a/apps/user/templates/user/bonus-history.html +++ b/apps/user/templates/user/bonus-history.html @@ -6,26 +6,32 @@ {% include "../blocks/profile-menu.html" with active="bonuses" %}
-
+
Бонусы
-
У вас {{ request.user.bonus|rupluralize:"бонус,бонуса,бонусов" }}
+
+
У вас {{ request.user.bonus }} Lil
+
+ 1 Lil = 1 Р +
+
- Вы можете пригласить своих друзей в наш сервис, за это - {% if config.REFERRER_BONUS == config.REFERRAL_BONUS %} - вы и они получите по {{ config.REFERRER_BONUS }}% - {% else %} - вы получите {{ config.REFERRER_BONUS }}%, а они {{ config.REFERRAL_BONUS }}% - {% endif %} - от суммы их первой покупки на бонусный счет. Приглашайте друзей, накапливайте бонусные баллы, тратьте бонусы - на приобретения доступа к школе и курсам. + Приглашайте друзей в Lil School и получайте {{ config.REFERRER_BONUS }}% + от суммы их первой покупки. Накапливайте монеты и тратьте их на оплату школы и курсов.
- Просто отправьте им эту ссылку, по которой они смогут зарегистрироваться: + Просто отправьте эту ссылку, по которой ваши друзья могут присоединиться к нам:
-
-
- +
+
+ +
+
+
+
+ +
+ {% include 'templates/blocks/share.html' with share_object_name="ссылкой" share_url=referrer_url %}
diff --git a/project/templates/blocks/lil_store_js.html b/project/templates/blocks/lil_store_js.html index 29aacb22..7df6d16d 100644 --- a/project/templates/blocks/lil_store_js.html +++ b/project/templates/blocks/lil_store_js.html @@ -22,6 +22,7 @@ urls: { courses: "{% url 'courses' %}", userProfileEdit: "{% url 'user-edit-profile' %}", + userBonuses: "{% url 'user-bonuses' %}", }, flags: { referrer: '{{ referrer.id|default:'' }}', diff --git a/project/templates/blocks/share.html b/project/templates/blocks/share.html index 85fa1ebb..0f0a360b 100644 --- a/project/templates/blocks/share.html +++ b/project/templates/blocks/share.html @@ -3,7 +3,9 @@