parent
7cdb020b0f
commit
ca085a02fd
13 changed files with 336 additions and 427 deletions
@ -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> |
{% extends 'base.html' %} |
||||||
<html lang="en"> |
|
||||||
<head> |
|
||||||
<meta charset="UTF-8"> |
|
||||||
<title>Title</title> |
|
||||||
</head> |
|
||||||
<body> |
|
||||||
|
|
||||||
</body> |
{% block content %} |
||||||
</html> |
<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 %} |
||||||
|
|||||||
@ -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" %} |
{% load mptt_tags %} |
||||||
<ul class="breadcrumbs"> |
|
||||||
<li><a href="{% url 'index:index' %}">Главная страница</a></li> |
<ul class="breadcrumbs"> |
||||||
{% block breadcrumbs %} |
<li> |
||||||
{% endblock breadcrumbs %} |
<a href="{% url 'index:index' %}"> |
||||||
</ul> |
Главная страница |
||||||
{% endif %} |
</a> |
||||||
|
</li> |
||||||
|
{% block breadcrumbs %} |
||||||
|
{% endblock breadcrumbs %} |
||||||
|
</ul> |
||||||
|
|||||||
@ -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' %} |
{% extends 'products/product_list.html' %} |
||||||
|
{% load static %} |
||||||
{% load staticfiles %} |
{% load core_tags %} |
||||||
|
{% load products_filters %} |
||||||
|
|
||||||
{% block title %} |
{% block breacrumbs %} |
||||||
{{ product.name }} |
{% breadcrumb_url 'Каталог' 'products:product_list' %} |
||||||
{% endblock %} |
{# {% breadcrumb_mptt_url product.get_ancestors %}#} |
||||||
|
{# {% breadcrum_url product.name 'products:product_details' product.get_path %}#} |
||||||
{% block content %} |
{% endblock breacrumbs %} |
||||||
|
|
||||||
<div class="boxlink"> |
{% block right_common_content %} |
||||||
<div class="link150"> |
<div class="content__subtitle">{{ product.name }}</div> |
||||||
<div class="blocktov"> |
<div class="good"> |
||||||
|
<div class="row"> |
||||||
<div class="greenline"> |
<div class="col-lg-6 col-12"> |
||||||
|
{% if product.productimage_set.exists %} |
||||||
|
<div class="good__slider"> |
||||||
<p>{{ product.name }}</p> |
<div class="slider__main-image"> |
||||||
|
<img src="{{ product.productimage_set.get_default_image.image.url }}" |
||||||
|
alt="{{ product.name }}"> |
||||||
<div class="textproduct"> |
</div> |
||||||
<p>{{ product.description }}</p> |
<ul class="slider__list"> |
||||||
</div> |
{% for product_image in product.productimage_set.get_all_images %} |
||||||
|
<li> <img src="{{ product_image.image.url }}" alt="{{ product_image.name }}"></li> |
||||||
<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> |
|
||||||
{% endfor %} |
{% endfor %} |
||||||
|
</ul> |
||||||
</select> |
|
||||||
</div> |
</div> |
||||||
{% endfor %} |
{% endif %} |
||||||
|
</div> |
||||||
<div class="itog">Cash-back:<br><span id="erw">0</span> руб.</div> |
<div class="col-lg-6 col-12 good__information"> |
||||||
<p class="bonussumm" > <span id="result_itog">0</span></p> |
<div class="row"> |
||||||
|
<div class="col"> |
||||||
<div> |
<div class="good__price"> |
||||||
<form class="add" action="{% url 'cart:CartAdd'%}" method="post"> |
{% 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 %} |
{% csrf_token %} |
||||||
{{ form }} |
<input type="hidden" name="offer" value="{{ product.id }}"> |
||||||
<input type="submit" value="Add to cart"> |
<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> |
</form> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</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> |
||||||
|
</div> |
||||||
<div class="blocktovleft"> |
</div> |
||||||
<img src="{% if product.image %}{{ product.image.url }}{% else %}{% static 'img/no-image.jpg'%}{% endif %}"> |
{% endblock right_common_content %} |
||||||
<div class="bonusblock"> |
{% block extra_post_content %} |
||||||
<p class="bonussumm" > <span id="result"></span></p> |
<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> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
{% endblock extra_post_content %} |
||||||
{% endblock content %} |
|
||||||
|
|||||||
@ -1,146 +1,152 @@ |
|||||||
{% extends 'common.html' %} |
{% extends 'common.html' %} |
||||||
{% load static %} |
{% 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 %} |
{% block extra_left_menu_items %} |
||||||
<div class="left-menu__filter"> |
{% if left_product_filter_formset %} |
||||||
<div class="filter__title"> |
<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=""> |
|
||||||
</div> |
</div> |
||||||
<div id="range" data-min="20" data-max="9999"></div> |
{% if left_product_filter_formset.price %} |
||||||
</form> |
{% crispy left_product_filter_formset.price %} |
||||||
<div class="filter__category"> |
{% endif %} |
||||||
<div class="filter__category-item"> |
<div class="filter__category"> |
||||||
<div class="category__title">Производитель</div> |
{% if left_product_filter_formset.manufacturer %} |
||||||
<ul> |
<div class="filter__category-item"> |
||||||
<li><a href="#">Nokia</a></li> |
{% crispy left_product_filter_formset.manufacturer %} |
||||||
<li><a href="#">Apple</a></li> |
</div> |
||||||
<li><a href="#">Samsung</a></li> |
{% endif %} |
||||||
<li><a href="#">Dexp</a></li> |
{% if left_product_filter_formset.supply_type %} |
||||||
<li><a href="#">Seven</a></li> |
<div class="filter__category-item"> |
||||||
</ul> |
{% crispy left_product_filter_formset.supply_type %} |
||||||
</div> |
</div> |
||||||
<div class="filter__category-item"> |
{% endif %} |
||||||
<div class="category__title">Тип поставки</div> |
{% if left_product_filter_formset.supply_target %} |
||||||
<ul> |
<div class="filter__category-item"> |
||||||
<li><a href="#">Nokia</a></li> |
{% crispy left_product_filter_formset.supply_target %} |
||||||
<li><a href="#">Apple</a></li> |
</div> |
||||||
<li><a href="#">Samsung</a></li> |
{% endif %} |
||||||
<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> |
||||||
</div> |
</div> |
||||||
</div> |
{% endif %} |
||||||
{% endblock extra_left_menu_items %} |
{% endblock extra_left_menu_items %} |
||||||
{% block right_common_content %} |
{% 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"> |
<div class="sort"> |
||||||
<form action=""> |
{% crispy product_sort_form %} |
||||||
Сортировать по |
|
||||||
<select> |
|
||||||
<option value="1">Популярности</option> |
|
||||||
<option value="2">Рейтингу</option> |
|
||||||
<option value="2">Цене</option> |
|
||||||
</select> |
|
||||||
</form> |
|
||||||
</div> |
</div> |
||||||
<div class="catalog"> |
<div class="catalog"> |
||||||
{% for product in products %} |
{% for product in object_list %} |
||||||
<div class="catalog__item"> |
<div class="catalog__item"> |
||||||
<div class="catalog__information"> |
|
||||||
|
<div class="catalog__information"> |
||||||
|
{% if product.productimage_set.get_default_image %} |
||||||
<div class="catalog__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> |
||||||
<div class="catalog__dec"> |
{% endif %} |
||||||
<div class="catalog__title"> |
<div class="catalog__dec"> |
||||||
<a href="{% url 'products:product' slug=product.slug %}"> |
<div class="catalog__title"> |
||||||
{{ product.name }} |
<a href="{{ product.get_absolute_url }}">{{ product.name }}</a></div> |
||||||
</a> |
<div class="catalog__star"> |
||||||
</div> |
<form action=""> |
||||||
<div class="catalog__price"> |
<select class="stars" data-rating="2"> |
||||||
{{ product.offer.price }} {{ product.offer.currency }} |
<option value="1">1</option> |
||||||
</div> |
<option value="2">2</option> |
||||||
<div class="catalog__dec-list"> |
<option value="3">3</option> |
||||||
<ul> |
<option value="4">4</option> |
||||||
<li><span>Артикул:</span>057J1-WWW8695-T548</li> |
<option value="5">5</option> |
||||||
<li><span>НДС:</span>Включен</li> |
</select> |
||||||
<li><span>Платформа:</span>Windows</li> |
</form> |
||||||
<li><span>Тип поставки:</span>Любой из доступных</li> |
</div> |
||||||
<li><span>Срок поставки:</span>3-14 дней</li> |
<div class="catalog__price"> |
||||||
<li><span>Примечание:</span>Временная лицензия, 1 год – новая покупка, локальная</li> |
{{ product.offer.get_price_with_discount }}{{ product.offer.currency.sign }}</div> |
||||||
</ul> |
<div class="catalog__dec-list"> |
||||||
</div> |
<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> |
|
||||||
<div class="catalog__btn"> |
|
||||||
<a href="#">Купить</a> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{% empty %} |
<div class="catalog__btn"> |
||||||
<div class="catalog__item"> |
<form action="{% url 'cart:add' %}" method="post" type="multipart/form-data"> |
||||||
<div class="catalog__information"> |
{% csrf_token %} |
||||||
<div class="catalog__image"><img src="./img/item-image-min.png" alt=""></div> |
<input type="hidden" name="offer" value="{{ product.id }}"> |
||||||
<div class="catalog__dec"> |
<input type="hidden" name="amount" value="1"> |
||||||
<div class="catalog__title"><a href="#">ESET NOD32 Secure Enterprise новая лицензия |
<input type="submit" value="Купить"> |
||||||
для 26 компьютеров</a></div> |
</form> |
||||||
<div class="catalog__star"> |
</div> |
||||||
<form action=""> |
</div> |
||||||
<select class="stars" data-rating="2"> |
{% empty %} |
||||||
<option value="1">1</option> |
<div class="catalog__item"> |
||||||
<option value="2">2</option> |
На данный момент товары отсутсвуют, зайдите позже :)) |
||||||
<option value="3">3</option> |
</div> |
||||||
<option value="4">4</option> |
{% endfor %} |
||||||
<option value="5">5</option> |
{% if paginator.num_pages > 1 %} |
||||||
</select> |
{% spaceless %} |
||||||
</form> |
<div class="row pagination"> |
||||||
</div> |
<div class="col-md-4 text-center"> |
||||||
<div class="catalog__price">79 400 ₽ / 1398 $</div> |
{% if page_obj.has_previous %} |
||||||
<div class="catalog__dec-list"> |
<a href="{{ request.path }}?page= |
||||||
<ul> |
|
||||||
<li><span>Артикул:</span>057J1-WWW8695-T548</li> |
|
||||||
<li><span>НДС:</span>Включен</li> |
|
||||||
<li><span>Платформа:</span>Windows</li> |
|
||||||
<li><span>Тип поставки:</span>Любой из доступных</li> |
{{ page_obj.previous_page_number }}{{ request.GET|filter_query_params:"page"|apply_query_params:True }}"> |
||||||
<li><span>Срок поставки:</span>3-14 дней</li> |
« |
||||||
<li><span>Примечание:</span>Временная лицензия, 1 год – новая покупка, локальная</li> |
</a> |
||||||
</ul> |
{% endif %} |
||||||
</div> |
</div> |
||||||
</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> |
||||||
<div class="catalog__btn"> |
<div class="col-md-4 text-center"> |
||||||
<a href="basket.html">Купить</a> |
{% if page_obj.has_next %} |
||||||
|
<a href="{{ request.path }}?page= |
||||||
|
{{ page_obj.next_page_number }}{{ request.GET|apply_query_params:True }}"> |
||||||
|
» |
||||||
|
</a> |
||||||
|
{% endif %} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{% endfor %} |
{% endspaceless %} |
||||||
|
{% endif %} |
||||||
</div> |
</div> |
||||||
{% endblock right_common_content %} |
{% endblock right_common_content %} |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue