From ce11662df9fa37c202e6b76aa453f13d24f8576e Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Mon, 23 Jul 2018 03:17:06 +0300 Subject: [PATCH] refactor products layouts --- templates/products/manufacture_list.html | 1 + templates/products/product_category_list.html | 197 +++++++++++++++++ .../{product.html => product_detail.html} | 0 .../{productslist.html => product_list.html} | 8 +- templates/products/product_search.html | 198 ++++++++++++++++++ templates/products/search.html | 16 -- 6 files changed, 399 insertions(+), 21 deletions(-) create mode 100644 templates/products/manufacture_list.html create mode 100644 templates/products/product_category_list.html rename templates/products/{product.html => product_detail.html} (100%) rename templates/products/{productslist.html => product_list.html} (93%) create mode 100644 templates/products/product_search.html delete mode 100644 templates/products/search.html diff --git a/templates/products/manufacture_list.html b/templates/products/manufacture_list.html new file mode 100644 index 0000000..7a22d0a --- /dev/null +++ b/templates/products/manufacture_list.html @@ -0,0 +1 @@ +{% extends 'common.html' %} diff --git a/templates/products/product_category_list.html b/templates/products/product_category_list.html new file mode 100644 index 0000000..a5c0fd6 --- /dev/null +++ b/templates/products/product_category_list.html @@ -0,0 +1,197 @@ +{% extends 'common.html' %} +{% block extra_left_menu_items %} + +{% endblock extra_left_menu_items %} +{% block right_common_content %} +
+ +
+ +
Производители
+ +
+
+ Сортировать по + +
+
+
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
Не нашли нужную программу + или разработчика? + Заполните форму и с Вами + свяжется наш специалист. +
+ + + + + +
+
+{% endblock right_common_content %} + diff --git a/templates/products/product.html b/templates/products/product_detail.html similarity index 100% rename from templates/products/product.html rename to templates/products/product_detail.html diff --git a/templates/products/productslist.html b/templates/products/product_list.html similarity index 93% rename from templates/products/productslist.html rename to templates/products/product_list.html index a8a1a03..9d71c2e 100644 --- a/templates/products/productslist.html +++ b/templates/products/product_list.html @@ -1,9 +1,7 @@ -{% extends 'base.html' %} +{% extends 'common.html' %} {% load static %} -{% block title %} - Products Page -{% endblock %} +{% block title %}{{ title }}{% endblock %} {% block content %}
@@ -30,4 +28,4 @@ {% endfor %}
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/products/product_search.html b/templates/products/product_search.html new file mode 100644 index 0000000..5869149 --- /dev/null +++ b/templates/products/product_search.html @@ -0,0 +1,198 @@ +{% extends 'common.html' %} +{% block title %}{{ title }}{% endblock title %} +{% block extra_left_menu_items %} + +{% endblock extra_left_menu_items %} +{% block right_common_content %} +
+ +
+ +
Производители
+ +
+
+ Сортировать по + +
+
+
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
79 400 ₽ / 1398 $
+
+
    +
  • Артикул:057J1-WWW8695-T548
  • +
  • НДС:Включен
  • +
  • Платформа:Windows
  • +
  • Тип поставки:Любой из доступных
  • +
  • Срок поставки:3-14 дней
  • +
  • Примечание:Временная лицензия, 1 год – новая покупка, локальная
  • +
+
+
+
+ +
+
+
+
+
Не нашли нужную программу + или разработчика? + Заполните форму и с Вами + свяжется наш специалист. +
+ + + + + +
+
+{% endblock right_common_content %} + diff --git a/templates/products/search.html b/templates/products/search.html deleted file mode 100644 index 3301f74..0000000 --- a/templates/products/search.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'base.html' %} -{% load static %} - -{% block content %} - - {% if products_images.count > 0 %} -
- {% for product_image in products_images %} - {% include 'landing/product_item.html' %} - {% endfor %} -
- {% else %} -
  • None to show!
  • - {% endif %} - -{% endblock %} \ No newline at end of file