|
|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|
|