Merge branch 'hotfix/mobile-pw-widget' into 'master'

Сверстать виджет Paymentwall для мобильных устройств

See merge request lilschool/site!403
remotes/origin/hotfix/failed_front_build
Danil 6 years ago
commit 8506f6e265
  1. 8
      apps/payment/views.py

@ -117,7 +117,7 @@ class CourseBuyView(TemplateView):
attrs = {}
if request.user_agent.is_mobile:
attrs['width'] = '100%'
attrs['height'] = '500'
attrs['height'] = '600'
return self.render_to_response(context={'widget': widget.get_html_code(attrs)})
@ -190,7 +190,7 @@ class SchoolBuyView(TemplateView):
attrs = {'height': '400'}
if request.user_agent.is_mobile:
attrs['width'] = '100%'
attrs['height'] = '500'
attrs['height'] = '600'
return self.render_to_response(context={
'widget': widget.get_html_code(attrs),
'school': True,
@ -265,7 +265,7 @@ class DrawingCampBuyView(TemplateView):
attrs = {}
if request.user_agent.is_mobile:
attrs['width'] = '100%'
attrs['height'] = '500'
attrs['height'] = '600'
return self.render_to_response(context={'widget': widget.get_html_code(attrs)})
@ -456,7 +456,7 @@ class GiftCertificateBuyView(TemplateView):
attrs = {}
if request.user_agent.is_mobile:
attrs['width'] = '100%'
attrs['height'] = '500'
attrs['height'] = '600'
context['widget'] = widget.get_html_code(attrs)
return self.render_to_response(context)

Loading…
Cancel
Save