diff --git a/templates/bootstrap/forms/cart_checkout.html b/templates/bootstrap/forms/cart_checkout.html index 4cc2169..2dd41cf 100644 --- a/templates/bootstrap/forms/cart_checkout.html +++ b/templates/bootstrap/forms/cart_checkout.html @@ -1,10 +1,25 @@ - - - - - $Title$ - - -$END$ - - +{% load crispy_forms_field %} + +{% spaceless %} +
+ +
+ {% if field.label %} + {{ field.label }}{% if field.field.required %}*{% endif %} + {% endif %} +
+
+
+ {{ field }} + {% if field.field.help_text %} + + {% endif %} +
+ {% if field.errors %} +
+ {{ field.errors|safe }} +
+ {% endif %} +
+
+{% endspaceless %} diff --git a/templates/cart/cart.html b/templates/cart/cart.html index d2d921c..8ed69fd 100644 --- a/templates/cart/cart.html +++ b/templates/cart/cart.html @@ -10,7 +10,7 @@
-
+
Товар
@@ -22,12 +22,13 @@
Сумма
+
{% for offer in offer_items %}
-
+
@@ -39,20 +40,30 @@
-
+
-
+
Цена
{{ offer.get_price_with_discount }} {{ offer.currency.sign }}
-
+
Количество
{{ request.cart|get_cart_offer_amount:offer}}
-
+
Сумма
{{ request.cart|calculate_price:offer }} {{ offer.currency.sign }}
+
+
Действие
+
+
+ {% csrf_token %} + + +
+
+
diff --git a/templates/cart/checkout.html b/templates/cart/checkout.html index 21f5da2..2529931 100644 --- a/templates/cart/checkout.html +++ b/templates/cart/checkout.html @@ -1 +1,15 @@ {% extends 'base.html' %} +{% load crispy_forms_tags %} + +{% block content %} +
+
+
Оформление заказа
+
+
+ {% crispy form %} +
+
+
+
+{% endblock content %} diff --git a/templates/cart/confirm.html b/templates/cart/confirm.html index 21f5da2..0cb3237 100644 --- a/templates/cart/confirm.html +++ b/templates/cart/confirm.html @@ -1 +1,6 @@ {% extends 'base.html' %} +{% block content %} +
+ Спасибо за заказ. Наши менеджеры скоро с вами свяжуться :)) +
+{% endblock content %} diff --git a/templates/cart/discount_list.html b/templates/cart/discount_list.html index e69de29..fe16a12 100644 --- a/templates/cart/discount_list.html +++ b/templates/cart/discount_list.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} + +{% block content %} + +
+
+
{{ title }}
+
+
+ {% for discount in object_list %} +
+
+
Cashback с каждой покупки!
+
+

It is a long established fact that a reader will be distracted by the readable + content of a page when looking at its layout. The point of using Lorem Ipsum is + that it has a more-or-less normal distribution of letters, as opposed to using + 'Content here, content here', making it look like readable English. Many desktop + publishing packages and web page editors now use Lorem Ipsum as their default + model text, and a search for 'lorem ipsum' will uncover many web sites still in + their infancy. Various versions have evolved over the years, sometimes by + accident, sometimes on purpose (injected humour and the like).

+
+
+ {% empty %} +
+ Сегодня скидок не будет. Приходите завтра :)) +
+ {% endfor %} +
+
+
+
+{% endblock content %} diff --git a/templates/common.html b/templates/common.html index 9d89336..620c04b 100644 --- a/templates/common.html +++ b/templates/common.html @@ -115,7 +115,7 @@
{% endif %} - {% if not is_index %} + {% if not request.path == '/' %} {% include 'components/breadcrumbs.html' %} {% endif %} {% block right_common_content %} diff --git a/templates/common_news.html b/templates/common_news.html index cc54c66..5846dfc 100644 --- a/templates/common_news.html +++ b/templates/common_news.html @@ -1,5 +1,9 @@ -{% extends 'base.html'%} +{% extends 'base.html' %} {% block content %} - {% include 'components/breadcrumbs.html' %} -{% endblock content%} + {% if not request.path == '/' %} + {% include 'components/breadcrumbs.html' %} + {% endif %} + {% block news_content %} + {% endblock news_content %} +{% endblock content %} diff --git a/templates/components/breadcrumbs.html b/templates/components/breadcrumbs.html index 8c07802..93eab0e 100644 --- a/templates/components/breadcrumbs.html +++ b/templates/components/breadcrumbs.html @@ -1,4 +1,3 @@ -{% load mptt_tags %}