parent
75c70bf962
commit
6ee39759a2
13 changed files with 216 additions and 20 deletions
@ -0,0 +1,18 @@ |
||||
# Generated by Django 2.0.7 on 2019-03-27 20:54 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('payment', '0032_auto_20190207_1233'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='userbonus', |
||||
name='notified_at', |
||||
field=models.DateTimeField(blank=True, null=True), |
||||
), |
||||
] |
||||
@ -0,0 +1,22 @@ |
||||
# Generated by Django 2.0.7 on 2019-03-27 20:55 |
||||
|
||||
from django.utils import timezone |
||||
from django.db import migrations |
||||
|
||||
|
||||
def fill_bonuses_notified_at(apps, schema_editor): |
||||
UserBonus = apps.get_model('payment', 'UserBonus') |
||||
for ub in UserBonus.objects.filter(notified_at__isnull=True): |
||||
ub.notified_at = timezone.now() |
||||
ub.save() |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('payment', '0033_userbonus_notified_at'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RunPython(fill_bonuses_notified_at), |
||||
] |
||||
@ -0,0 +1,18 @@ |
||||
<div class="popup bonuses-came js-popup-bonuses-came"> |
||||
<div class="popup__wrap popup__wrap_md js-popup-wrap"> |
||||
<button class="popup__close js-popup-close"> |
||||
<svg class="icon icon-close"> |
||||
<use xlink:href={% static "img/sprite.svg" %}#icon-close></use> |
||||
</svg> |
||||
</button> |
||||
<div class="popup__body bonuses-came__body"> |
||||
<img src="{% static 'img/lilcoin48x54.png' %}" style="width: 60px;" /> |
||||
<div class="bonuses-came__title">Вам начислено</div> |
||||
<div class="bonuses-came__bonuses">300</div> |
||||
<div>лиликов</div> |
||||
<div class="bonuses-came__text">Приглашайте друзей в Lil School и получайте 30% от суммы их первой покупки. |
||||
Накапливайте монеты и тратьте их на оплату школы и курсов.</div> |
||||
<a href="#" class="bonuses-came__link">Узнать больше про Лилики</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 471 KiB |
Loading…
Reference in new issue