update templates

remotes/origin/HEAD
Max Yakovenko 8 years ago
parent 7cdb020b0f
commit ca085a02fd
  1. 14
      templates/404.html
  2. 21
      templates/500.html
  3. 10
      templates/base.html
  4. 86
      templates/common.html
  5. 5
      templates/common_news.html
  6. 18
      templates/components/breadcrumbs.html
  7. 27
      templates/components/header.html
  8. 46
      templates/orders/create.html
  9. 14
      templates/orders/created.html
  10. 121
      templates/orders/pdf.html
  11. 1
      templates/products/manufacture_list.html
  12. 148
      templates/products/product_detail.html
  13. 252
      templates/products/product_list.html

@ -1 +1,13 @@
{% %}
{% extends 'base.html' %}
{% block content %}
<div class="col-lg-4 col-lg-offset-4">
<div class="reg">
<div class="row">
<div class="col-12 text-center">
<h3>Упс, такой страницы не существует. Вернитесь на предущую <a href="{{ request.HTTP_REFFERER }}">страницу</a></h3>
</div>
</div>
</div>
</div>
{% endblock content %}

@ -1,10 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
{% extends 'base.html' %}
</body>
</html>
{% block content %}
<div class="col-lg-4 col-lg-offset-4">
<div class="reg">
<div class="row">
<div class="col-12 text-center">
<h3>Произошла ошибка на сайте. Просим извинения за неудобства. Зайдите позже :))</h3>
</div>
</div>
</div>
</div>
{% endblock content %}

@ -24,9 +24,7 @@
<link rel="apple-touch-icon" sizes="180x180" href="{% static "img/favicon/apple-touch-icon-180x180.png" %}">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&amp;subset=cyrillic" rel="stylesheet">
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/main.min.css' %}">
<link rel="stylesheet" href="{% static 'css/main.fix.css' %}">
<link rel="stylesheet" href="{% static 'css/build.css' %}">
{% block extra_head_content %}
{% endblock extra_head_content %}
</head>
@ -52,12 +50,8 @@
{% block extra_post_content %}
{% endblock extra_post_content %}
<!-- jQuery -->
<script src="{% static 'js/scripts.min.js' %}"></script>
<script src="{% static 'js/build-min.js' %}"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="{% static 'js/bootstrap.min.js' %}"></script>
{#<script src="{% static 'js/basket.tools.js' %}"></script>#}
{#<script src="{% static 'js/jquery.autocomplete.js' %}"></script>#}
{#<script src="{% static 'js/our_search_code.js' %}"></script>#}
{% block extra_body_js %}
{% endblock extra_body_js %}
</body>

@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% load static %}
{% load crispy_forms_tags %}
{% load products_filters %}
{% block content %}
<div class="col-4 left-menu">
@ -13,17 +14,37 @@
{% block extra_left_menu_items %}
{% endblock extra_left_menu_items %}
{% if product_categories %}
{% if the_product_category or product_categories %}
<div class="left-menu__category">
{% for category in product_categories %}
{% if the_product_category and the_product_category.parent %}
<a class="left-menu__category-item"
href="{% url "products:product_list" category_slug=category.slug %}">
href="{{ the_product_category.parent.get_absolute_url }}">
{% if category.image %}
<span class="category-item__image">
<img src="{{ category.image.url }}" alt="{{ category.name }}">
</span>
{% endif %}
<span class="category-item__name">Вернуться в {{ the_product_category.parent.name }}</span>
</a>
{% elif the_product_category %}
<a class="left-menu__category-item"
href="{% url 'products:product_list' %}">
<span class="category-item__name">Вернуться в Каталог</span>
</a>
{% endif %}
{% if product_categories %}
{% for category in product_categories %}
<a class="left-menu__category-item"
href="{{ category.get_absolute_url }}">
{% if category.image %}
<span class="category-item__image">
<img src="{% static category.image.url %}" alt="{{ category.name }}">
<img src="{{ category.image.url }}" alt="{{ category.name }}">
</span>
<span class="category-item__name">{{ category.name }}</span>
</a>
{% endfor %}
{% endif %}
<span class="category-item__name">{{ category.name }}</span>
</a>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if left_contact_us_form %}
@ -57,31 +78,46 @@
{% endif %}
</div>
</div>
{% if product_categories %}
{% if hasCategories %}
<div class="content__category">
<ul class="content__category-list">
{% if the_product_category and the_product_category.parent %}
<li>
<a href="{% url 'products:product_list' category_slug=the_product_category.parent.slug %}">
{{ the_product_category.parent.name }}
</a>
</li>
{% endif %}
{% for category in product_root_categories %}
<li>
<a href="{% url "products:product_category" category_slug=category.slug %}">
<a class="category-item"
href="{{ the_product_category.parent.get_absolute_url }}">
{% if category.image %}
<span class="category-item__image">
<img src="{% static category.img %}" alt="{{ category.alt }}">
</span>
<span class="category-item__name">{{ category.name }}</span>
</a>
</li>
{% empty %}
{% endfor %}
<img src="{{ category.image.url }}" alt="{{ category.name }}">
</span>
{% endif %}
<span class="category-item__name">Вернуться в {{ the_product_category.parent.name }}</span>
</a>
{% elif the_product_category %}
<a class="left-menu__category-item"
href="{% url 'products:product_list' %}">
<span class="category-item__name">Вернуться в Каталог</span>
</a>
{% endif %}
{% if product_categories %}
{% for category in product_categories %}
<li>
<a href="{{ category.get_absolute_url }}">
{% if category.image %}
<span class="category-item__image">
<img src="{{ category.image.url }}" alt="{{ category.name }}">
</span>
{% endif %}
<span class="category-item__name">{{ category.name }}</span>
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</div>
{% endif %}
{% include 'components/breadcrumbs.html' %}
{% if not is_index %}
{% include 'components/breadcrumbs.html' %}
{% endif %}
{% block right_common_content %}
{% endblock right_common_content %}
{% if content_contact_us_form %}

@ -0,0 +1,5 @@
{% extends 'base.html'%}
{% block content %}
{% include 'components/breadcrumbs.html' %}
{% endblock content%}

@ -1,7 +1,11 @@
{% if request.resolver_match.url_name != "index" %}
<ul class="breadcrumbs">
<li><a href="{% url 'index:index' %}">Главная страница</a></li>
{% block breadcrumbs %}
{% endblock breadcrumbs %}
</ul>
{% endif %}
{% load mptt_tags %}
<ul class="breadcrumbs">
<li>
<a href="{% url 'index:index' %}">
Главная страница
</a>
</li>
{% block breadcrumbs %}
{% endblock breadcrumbs %}
</ul>

@ -15,7 +15,7 @@
<a href="{% url 'products:product_list' %}">Каталог</a>
</li>
<li>
<a href="news.html">Новости</a>
<a href="{% url 'news:blog' %}">Новости</a>
</li>
<li>
<a href="{% url 'django.contrib.flatpages.views.flatpage' url='sales/' %}">Акции</a>
@ -40,24 +40,25 @@
</div>
<div class="col-lg-3 col align-self-center controls">
<div class="row">
<div class="header__control justify-content-lg-between d-flex">
<div class="header__control {% if not request.user.is_authenticated %}header__control-width-fix{% endif %} justify-content-lg-between d-flex">
{% if not request.user.is_authenticated %}
<a href="{% url "accounts_ext:login" %}" class="header__link_fill">Вход</a>
<a href="{% url "accounts_ext:register" %}" class="header__link_inv">Регистрация</a>
{% else %}
<div class="header__lk">
<a href="{% url 'cabinet:index' %}" title="{{ request.user.username }}" class="header__link">Личный кабинет</a>
<a href="{% url 'cabinet:index' %}" title="{{ request.user.username }}"
class="header__link">Личный кабинет</a>
</div>
{% endif %}
<a href="{% url 'cart:buyings' %}" class="header__cart">
{% if request.user.is_authenticated %}
<img src="{% static "img/header/cart-icon.svg" %}"
alt="Перейти в корзину"><span class="cart__count">{{ "5" }}</span>
{% else %}
<img src="{% static "img/header/cart-icon.svg" %}" alt="Перейти в корзину">
{% endif %}
</a>
{% if request.user.is_authenticated %}
<a href="{% url 'cart:buyings' %}" class="header__cart">
<img src="{% static "img/header/cart-icon.svg" %}"
alt="Перейти в корзину">
{% if cart|length > 0 %}
<span class="cart__count">{{ cart|length }}</span>
{% endif %}
</a>
{% endif %}
<div class="mob-menu align-self-center ">
<button id="menu_active">
<img src="{% static "img/menu/menu-mob.svg" %}">
@ -69,7 +70,7 @@
<div class="row">
<div class="header__control justify-content-lg-between d-flex">
<div class="header__lk">
<a href="{% url 'accounts_ext:logout'%}" class="header__link">Выход</a>
<a href="{% url 'accounts_ext:logout' %}" class="header__link">Выход</a>
</div>
</div>
</div>

@ -1,46 +0,0 @@
{% extends "base.html" %}
{% block title %}
Ordering
{% endblock %}
{% block content %}
<div class="col-sm-4">
<h2>Пожалуйста введите информацию о заказе.</h2>
<form class="order-form" action="." method="post">
{% csrf_token %}
{{ form.as_p }}
<!--<label for="customer_name"></label>-->
<!--<input id="customer_name" type="text" name="customer_name" maxlength="64">-->
<!--<label for="customer_phone"></label>-->
<!--<input id="customer_phone" type="text" name="customer_phone" maxlength="64">-->
<!--<label for="customer_email"></label>-->
<!--<input id="customer_email" type="text" name="customer_email" maxlength="64">-->
<!--<label for="city"></label>-->
<!--<input id="city" type="text" name="city" maxlength="100">-->
<input type="submit" value="Submit">
</form>
</div>
<div class="order-info col-sm-8">
<h2>Ваш заказ</h2>
<ul>
{% for item in cart %}
<li>
{{ item.offer.name }} | Количество: {{ item.quantity }} | Стоимость: {{ item.total_price }} руб.
</li>
{% endfor %}
{% if cart.discount %}
<li>
"{{ cart.discount.code }}" ({{ cart.discount.discount }}% less)
<span> - {{ cart.get_discount|floatformat:"2"}} руб.</span>
</li>
{% endif %}
</ul>
{% if request.session.points %}
<p><strong>Всего:</strong> {{ cart.get_total_deduct_points|floatformat:"2"}} руб.</p>
{% else %}
<p><strong>Всего:</strong> {{ cart.get_total_price|floatformat:"2"}} руб.</p>
{% endif %}
</div>
{% endblock %}

@ -1,14 +0,0 @@
{% extends "base.html" %}
{% block title %}
Спасибо за заказ
{% endblock %}
{% block content %}
<h1>Благодарим Вас за заказ!</h1>
<h1>На указанную Вами почту было отправлено платежное поручение, заказ будет принят в работу после оплаты.</h1>
<p>Номер Вашего заказа: {{ order.id }}</p>
<p class="text-right">
<a href="{% url 'products:ProductList'%}" class="btn btn-success">На главную страницу</a>
</p>
{% endblock %}

@ -1,121 +0,0 @@
{% load static %}
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
td#h01, td#h03 {
border: 0px;
font-weight:bold;
}
td#h02, td#h04 {
border-top: 0px;
font-size: x-small;
}
td#t01, td#t02, td#t03 {
text-align: right;
font-weight:bold;
}
</style>
</head>
<body>
<!--<h3>-->
<!--ВНИМАНИЕ! В ПЛАТЕЖНОМ ПОРУЧЕНИИ УКАЗЫВАТЬ ПОЛНОЕ НАИМЕНОВАНИЕ-->
<!--ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "РУССКИЕ ПРОГРАММЫ".-->
<!--</h3>-->
<div><img src="file:///home/denis/Eshop/Eshop/static/img/payment_header.jpg"></div>
<table class="table">
<tr>
<td id="h01">{{ bank }}</td>
<td>БИК</td>
<td>{{ BIK }}</td>
</tr>
<tr>
<td id="h02">Банк получателя</td>
<td>Сч. №</td>
<td>{{ bank_acc }}</td>
</tr>
<tr>
<td rowspan="2" id="h03">{{ name }}</td>
<td>ИНН</td>
<td>{{ INN }}</td>
</tr>
<tr>
<td>КПП</td>
<td>{{ KPP }}</td>
</tr>
<tr>
<td id="h04">Получатель</td>
<td>Сч. №</td>
<td>{{ acc }}</td>
</tr>
</table>
<h3>
<b><u>Счет на оплату № {{ order.id }} от {{ order.created }}</u></b>
</h3>
<table class="table">
<tr>
<th>Поставщик:</th>
<td>{{ sup_info }}</td>
</tr>
<tr>
<th>Покупатель:</th>
<td>{{ order.customer_name }}</td>
</tr>
</table>
<table class="table">
<thead>
<tr>
<th></th>
<th>Товары(работы/услуги)</th>
<th>Кол-во</th>
<th>Ед.</th>
<th>Цена</th>
<th>Сумма</th>
</tr>
</thead>
<tbody>
{% for item in order.items.all %}
<tr class="row{% cycle '1' '2' %}">
<td>{{ forloop.counter }}</td>
<td>{{ item.product.name }}</td>
<td>{{ item.number }}</td>
<td>шт</td>
<td>{{ item.price_per_itom }}</td>
<td>{{ item.total_price }}</td>
</tr>
{% endfor %}
<tr>
<td colspan="5" id="t01">Итого:</td>
<td class="num">{{ order.total_price }}</td>
</tr>
<tr>
<td colspan="5" id="t02">Без налога (НДС)</td>
<td class="num">-</td>
</tr>
<tr>
<td colspan="5" id="t03">Всего к оплате:</td>
<td class="num">{{ order.total_price }}</td>
</tr>
</tbody>
</table>
<p>Всего наименований {{ order.items.count }} на сумму {{ order.total_price }} руб.</p>
<p>{{ verb_price }} {{ verb_cur }} 00 копеек</p>
<img src="file:///home/denis/Eshop/Eshop/static/img/Payment_foot.jpg">
</body>
</html>

@ -1 +0,0 @@
{% extends 'common.html' %}

@ -1,70 +1,100 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}
{{ product.name }}
{% endblock %}
{% block content %}
<div class="boxlink">
<div class="link150">
<div class="blocktov">
<div class="greenline">
<p>{{ product.name }}</p>
<div class="textproduct">
<p>{{ product.description }}</p>
</div>
<div class="calcblock">
<input type="hidden" id="variants" name="variants" value="{{ variant_picker_data.variants }}">
<input type="hidden" id="discount_policy" name="discount_policy" value="{{ variant_picker_data.discount_policy }}">
<input type="hidden" id="variant_length" name="variant_length" value="{{ variant_picker_data.variantAttributes|length }}">
{% for atribute in variant_picker_data.variantAttributes %}
<div class="buy">
<label> {{ atribute.public_name }} </label>
<select id="id_{{ forloop.counter0 }}" name="{{ atribute.name }}" onchange="calculate()">
{% for value in atribute.values %}
<option value="{{ value }}"
{% if value == atribute.values.0 %} selected="selected"{% endif %}>
{{ value.name }}
</option>
{% extends 'products/product_list.html' %}
{% load static %}
{% load core_tags %}
{% load products_filters %}
{% block breacrumbs %}
{% breadcrumb_url 'Каталог' 'products:product_list' %}
{# {% breadcrumb_mptt_url product.get_ancestors %}#}
{# {% breadcrum_url product.name 'products:product_details' product.get_path %}#}
{% endblock breacrumbs %}
{% block right_common_content %}
<div class="content__subtitle">{{ product.name }}</div>
<div class="good">
<div class="row">
<div class="col-lg-6 col-12">
{% if product.productimage_set.exists %}
<div class="good__slider">
<div class="slider__main-image">
<img src="{{ product.productimage_set.get_default_image.image.url }}"
alt="{{ product.name }}">
</div>
<ul class="slider__list">
{% for product_image in product.productimage_set.get_all_images %}
<li> <img src="{{ product_image.image.url }}" alt="{{ product_image.name }}"></li>
{% endfor %}
</select>
</ul>
</div>
{% endfor %}
<div class="itog">Cash-back:<br><span id="erw">0</span> руб.</div>
<p class="bonussumm" > <span id="result_itog">0</span></p>
<div>
<form class="add" action="{% url 'cart:CartAdd'%}" method="post">
{% endif %}
</div>
<div class="col-lg-6 col-12 good__information">
<div class="row">
<div class="col">
<div class="good__price">
{% if product.offer.discount %}
<div class="good__old-price">
{{ product.offer.price }}{{ product.offer.currency.sign }}</div>
{% endif %}
{% if product.offer.discount %}
<div class="good__new-price">
{{ product.offer.get_price_with_discount }}{{ product.offer.currency.sign }}</div>
{% else %}
<div class="good__new-price">
{{ product.offer.price }}{{ product.offer.currency.sign }}</div>
{% endif %}
{% if product.offer.cashback > 0 %}
<div class="good__cashback">Кэшбек
{{ product.offer.cashback }}{{ product.offer.currency.sign }}</div>
{% endif %}
</div>
</div>
<div class="col text-right">
<form action="{% url 'cart:add' %}" method="post" type="multipart/form-data">
{% csrf_token %}
{{ form }}
<input type="submit" value="Add to cart">
<input type="hidden" name="offer" value="{{ product.id }}">
<div class="good__count">
Количество <input type="number" value="1" min="1" max="{{ product.offer.amount }}">
</div>
<input class="good__btn-basket" type="submit" value="В корзину">
</form>
</div>
</div>
<div class="row">
<div class="good__dec">
<div class="good__dec-title">Описание</div>
<div class="good__dec-info">
{% if product.description > 0 %}
{{ product.description|apply_desc_preview }}
{% else %}
У данного товара описание отсутсвует
{% endif %}
</div>
{% if product.description > 0 %}
<a href="#" data-toggle="modal" data-target="#product-description" class="good__dec-next">
Читать полностью
</a>
{% endif %}
</div>
</div>
</div>
<div class="blocktovleft">
<img src="{% if product.image %}{{ product.image.url }}{% else %}{% static 'img/no-image.jpg'%}{% endif %}">
<div class="bonusblock">
<p class="bonussumm" > <span id="result"></span></p>
</div>
</div>
{% endblock right_common_content %}
{% block extra_post_content %}
<div class="modal fade" id="product-description" tabindex="-1" role="dialog" aria-labelledby="#product-description">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header text-center">
<h5 class="modal-title" id="exampleModalLongTitle">{{ product.name }}</h5>
</div>
<div class="modal-body">
{{ product.description }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary btn-danger" data-dismiss="modal">Закрыть</button>
</div>
</div>
</div>
</div>
</div>
{% endblock content %}
{% endblock extra_post_content %}

@ -1,146 +1,152 @@
{% extends 'common.html' %}
{% load static %}
{% load crispy_forms_tags %}
{% load core_tags %}
{% load products_filters %}
{% load product_tags %}
{% block breadcrums %}
{% breadcrumb_url 'Каталог' 'products:product_list' %}
{% if the_product_category.get_ancestors.exists %}{% endif %}
{% breadcrumb_url the_product_category.name 'products:product_list' the_product_category.get_path %}
{% endblock breadcrums %}
{% block extra_left_menu_items %}
<div class="left-menu__filter">
<div class="filter__title">
Фильтр товаров
</div>
<div class="filter__subtitle">
Цена
</div>
<form action="">
<div class="filter__controls">
<span>от</span>
<input type="text" class="filter__min" value="">
<span>до</span>
<input type="text" class="filter__max" value="">
{% if left_product_filter_formset %}
<div class="left-menu__filter">
<div class="filter__title">
Фильтр товаров
</div>
<div id="range" data-min="20" data-max="9999"></div>
</form>
<div class="filter__category">
<div class="filter__category-item">
<div class="category__title">Производитель</div>
<ul>
<li><a href="#">Nokia</a></li>
<li><a href="#">Apple</a></li>
<li><a href="#">Samsung</a></li>
<li><a href="#">Dexp</a></li>
<li><a href="#">Seven</a></li>
</ul>
</div>
<div class="filter__category-item">
<div class="category__title">Тип поставки</div>
<ul>
<li><a href="#">Nokia</a></li>
<li><a href="#">Apple</a></li>
<li><a href="#">Samsung</a></li>
<li><a href="#">Dexp</a></li>
<li><a href="#">Seven</a></li>
</ul>
</div>
<div class="filter__category-item">
<div class="category__title">Назначение</div>
<ul>
<li><a href="#">Nokia</a></li>
<li><a href="#">Apple</a></li>
<li><a href="#">Samsung</a></li>
<li><a href="#">Dexp</a></li>
<li><a href="#">Seven</a></li>
</ul>
{% if left_product_filter_formset.price %}
{% crispy left_product_filter_formset.price %}
{% endif %}
<div class="filter__category">
{% if left_product_filter_formset.manufacturer %}
<div class="filter__category-item">
{% crispy left_product_filter_formset.manufacturer %}
</div>
{% endif %}
{% if left_product_filter_formset.supply_type %}
<div class="filter__category-item">
{% crispy left_product_filter_formset.supply_type %}
</div>
{% endif %}
{% if left_product_filter_formset.supply_target %}
<div class="filter__category-item">
{% crispy left_product_filter_formset.supply_target %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock extra_left_menu_items %}
{% block right_common_content %}
<div class="content__subtitle">Производители</div>
<ul class="content__maker-list">
<li><a href="#">Avast</a></li>
<li><a href="#">Kaspersky</a></li>
<li><a href="#">Dr.Web</a></li>
<li><a href="#">McAfee</a></li>
<li><a href="#">ESET</a></li>
<li><a href="#">Symantec</a></li>
<li><a href="#">Grizzly</a></li>
</ul>
<div class="sort">
<form action="">
Сортировать по
<select>
<option value="1">Популярности</option>
<option value="2">Рейтингу</option>
<option value="2">Цене</option>
</select>
</form>
{% crispy product_sort_form %}
</div>
<div class="catalog">
{% for product in products %}
<div class="catalog__item">
<div class="catalog__information">
{% for product in object_list %}
<div class="catalog__item">
<div class="catalog__information">
{% if product.productimage_set.get_default_image %}
<div class="catalog__image">
<img src="{% static product.product_image.url %}" alt="{{ product.name }}">
<img src="{{ product.productimage_set.get_default_image.image.url }}"
alt="{{ product.name }}">
</div>
<div class="catalog__dec">
<div class="catalog__title">
<a href="{% url 'products:product' slug=product.slug %}">
{{ product.name }}
</a>
</div>
<div class="catalog__price">
{{ product.offer.price }} {{ product.offer.currency }}
</div>
<div class="catalog__dec-list">
<ul>
<li><span>Артикул:</span>057J1-WWW8695-T548</li>
<li><span>НДС:</span>Включен</li>
<li><span>Платформа:</span>Windows</li>
<li><span>Тип поставки:</span>Любой из доступных</li>
<li><span>Срок поставки:</span>3-14 дней</li>
<li><span>Примечание:</span>Временная лицензия, 1 год – новая покупка, локальная</li>
</ul>
</div>
{% endif %}
<div class="catalog__dec">
<div class="catalog__title">
<a href="{{ product.get_absolute_url }}">{{ product.name }}</a></div>
<div class="catalog__star">
<form action="">
<select class="stars" data-rating="2">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</form>
</div>
<div class="catalog__price">
{{ product.offer.get_price_with_discount }}{{ product.offer.currency.sign }}</div>
<div class="catalog__dec-list">
<ul>
<li><span>Артикул:</span>{{ product.offer.vendor_code }}</li>
<li><span>НДС:</span>{{ product.offer.account_nds|apply_nds_status }}</li>
<li><span>Платформа:</span>{{ product.platform }}</li>
<li><span>Тип поставки:</span>{{ product.offer.supply_type.name }}</li>
<li><span>Срок поставки:</span>{{ product.offer.supply_type.get_formatted_desc }}</li>
<li><span>Примечание:</span>{{ product.offer.note }}</li>
</ul>
</div>
</div>
<div class="catalog__btn">
<a href="#">Купить</a>
</div>
</div>
{% empty %}
<div class="catalog__item">
<div class="catalog__information">
<div class="catalog__image"><img src="./img/item-image-min.png" alt=""></div>
<div class="catalog__dec">
<div class="catalog__title"><a href="#">ESET NOD32 Secure Enterprise новая лицензия
для 26 компьютеров</a></div>
<div class="catalog__star">
<form action="">
<select class="stars" data-rating="2">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</form>
</div>
<div class="catalog__price">79 400 ₽ / 1398 $</div>
<div class="catalog__dec-list">
<ul>
<li><span>Артикул:</span>057J1-WWW8695-T548</li>
<li><span>НДС:</span>Включен</li>
<li><span>Платформа:</span>Windows</li>
<li><span>Тип поставки:</span>Любой из доступных</li>
<li><span>Срок поставки:</span>3-14 дней</li>
<li><span>Примечание:</span>Временная лицензия, 1 год – новая покупка, локальная</li>
</ul>
</div>
</div>
<div class="catalog__btn">
<form action="{% url 'cart:add' %}" method="post" type="multipart/form-data">
{% csrf_token %}
<input type="hidden" name="offer" value="{{ product.id }}">
<input type="hidden" name="amount" value="1">
<input type="submit" value="Купить">
</form>
</div>
</div>
{% empty %}
<div class="catalog__item">
На данный момент товары отсутсвуют, зайдите позже :))
</div>
{% endfor %}
{% if paginator.num_pages > 1 %}
{% spaceless %}
<div class="row pagination">
<div class="col-md-4 text-center">
{% if page_obj.has_previous %}
<a href="{{ request.path }}?page=
{{ page_obj.previous_page_number }}{{ request.GET|filter_query_params:"page"|apply_query_params:True }}">
&laquo;
</a>
{% endif %}
</div>
<div class="col-md-4 text-center">
{% if paginator.has_previous %}
<a href="{{ request.path }}?page=
{{ page_obj.number|add:"-1" }}{{ request.GET|filter_query_params:"page"|apply_query_params:True }}">
{{ page_obj.number|add:"-1" }}
</a>
{% endif %}
<span>{{ page_obj.number }}</span>
{% if page_obj.has_next %}
<a href="{{ request.path }}?page=
{{ page_obj.number|add:"+1" }}{{ request.GET|filter_query_params:"page"|apply_query_params:True }}">
{{ page_obj.number|add:"+1" }}
</a>
{% endif %}
</div>
<div class="catalog__btn">
<a href="basket.html">Купить</a>
<div class="col-md-4 text-center">
{% if page_obj.has_next %}
<a href="{{ request.path }}?page=
{{ page_obj.next_page_number }}{{ request.GET|apply_query_params:True }}">
&raquo;
</a>
{% endif %}
</div>
</div>
{% endfor %}
{% endspaceless %}
{% endif %}
</div>
{% endblock right_common_content %}

Loading…
Cancel
Save