shuup.xtheme.views package¶
Submodules¶
shuup.xtheme.views.command module¶
shuup.xtheme.views.editor module¶
shuup.xtheme.views.extra module¶
shuup.xtheme.views.forms module¶
-
class
shuup.xtheme.views.forms.
LayoutCellGeneralInfoForm
(**kwargs)[source]¶ Bases:
django.forms.forms.Form
-
CELL_FULL_WIDTH
= 12¶
-
CELL_WIDTH_CHOICES
= [(0, 'Custom'), (12, 'Full Width'), (9, 'Three Fourths (3/4)'), (8, 'Two Thirds (2/3)'), (6, 'Half (1/2)'), (4, 'One Third (1/3)'), (3, 'One Fourth (1/4)')]¶
-
CELL_ALIGN_CHOICES
= [(' ', 'Auto'), ('pull-left', 'Left'), ('pull-right', 'Right')]¶
-
save
()[source]¶ Save size configuration. Plugin configuration is done via JavaScript POST.
Both breakpoints (
sm`and `md
) are set to same value defined incell_width_field
. The reason for this is that the difference between these breakpoints is so minor that manually assigning both of these by shop admin introduces too much complexity to row-cell management UI.
-
base_fields
= OrderedDict([('plugin', <django.forms.fields.ChoiceField object>)])¶
-
declared_fields
= OrderedDict([('plugin', <django.forms.fields.ChoiceField object>)])¶
-
media
¶
-
-
class
shuup.xtheme.views.forms.
LayoutCellFormGroup
(**kwargs)[source]¶ Bases:
shuup.utils.form_group.FormGroup
Form group containing the LayoutCellGeneralInfoForm and a possible plugin-dependent configuration form.
shuup.xtheme.views.plugins module¶
-
shuup.xtheme.views.plugins.
get_category_products_highlight
(request, category_id, count, cache_timeout)[source]¶
-
shuup.xtheme.views.plugins.
get_product_cross_sell_highlight
(request, product_id, relation_type, use_parents, count, cache_timeout)[source]¶