diff --git a/src/common/templates/common/base.html b/src/common/templates/common/base.html index 624d66d..17f4576 100644 --- a/src/common/templates/common/base.html +++ b/src/common/templates/common/base.html @@ -11,7 +11,7 @@ {% endblock %} -
+
{% include "common/navbar.html" %} {% include "common/messages.html" %} {% block content %} diff --git a/src/purchase/forms.py b/src/purchase/forms.py index 4757d08..5615783 100644 --- a/src/purchase/forms.py +++ b/src/purchase/forms.py @@ -40,7 +40,10 @@ class BasketForm(forms.ModelForm): ) fields.append(BasketItemField(field_name, product=product)) self.helper.layout = Layout( - Div(*fields, css_class="row"), + Div( + *fields, + css_class="row row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-lg-5 row-cols-xl-6 g-4", + ), Field("payment_method"), ) diff --git a/src/purchase/templates/purchase/basket_item.html b/src/purchase/templates/purchase/basket_item.html index 182d5e5..15c2c00 100644 --- a/src/purchase/templates/purchase/basket_item.html +++ b/src/purchase/templates/purchase/basket_item.html @@ -1,9 +1,9 @@ {% load crispy_forms_field %} -
-
+
+
{{ product.name }}
{% if product.image %} - + {% endif %}