Источник шаблона: catalog/item.html

{% extends "website/layout.html" %} {% load staticfiles %} {% load cache %} {% block title %}{{ item.get_title }}{% endblock %} {% block description %}{{ item.get_description }}{% endblock %} {% block content %} <div id="catalogElement" class="item" data-product-id="{{item.id}}" data-iblock-id="" data-prop-id="" data-hide-measure="" data-price-code="BASE||OPT_1||OPT_2"> <div id="tableContainer"> <div id="elementContainer" class="column"> <p>{{ item.get_breadcrumbs | safe }}</p> <h1>{{ item.get_header }}</h1> <div class="mainContainer" id="browse"> <div class="col"> <div id="pictureContainer"> <div class="pictureSlider"> {% for photo in item.photos.all %} <div class="item"> <a href="{{photo.image_full_url}}" title="Увеличить" class="zoom" data-small-picture="{{photo.image_thumb_b_url}}" data-large-picture="{{photo.image_full_url}}"><img src="{{photo.image_thumb_b_url}}" alt=""></a> </div> {% endfor %} </div> </div> <div id="moreImagesCarousel"> <div class="carouselWrapper"> <div class="slideBox"> {% for photo in item.photos.all %} <div class="item"> <a href="{{photo.image_full_url}}" data-large-picture="{{photo.image_full_url}}" data-small-picture="{{photo.image_thumb_b_url}}"><img src="{{photo.image_thumb_s_url}}" alt=""></a> </div> {% endfor %} </div> </div> <div class="controls"> <a href="#" id="moreImagesLeftButton" style="display: none;"></a> <a href="#" id="moreImagesRightButton" style="display: none;"></a> </div> </div> </div> <div class="col"> {% comment %}<div id="smallElementTools"> <div class="mainTool"> <div class="article hidden"> Артикул: <span class="changeArticle" data-first-value=""></span> </div> <a class="price changePrice">{{ item.get_actual_price }} ₽</a> <div class="row"> <a href="#" class="addCart changeID changeCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="В корзину" class="icon">В корзину</a> </div> </div> </div>{% endcomment %} <div class="changePropertiesNoGroup"> <div class="elementProperties"> <div class="headingBox"></div> <div class="propertyList"> {% if item.in_stock %}<div class="propertyTable"><strong>В наличии</strong></div>{% endif %} {% if not item.in_stock %}<div class="propertyTable"><strong>Под заказ</strong></div>{% endif %} {% if item.article %} <div class="propertyTable"><div class="propertyName">Артикул</div><div class="propertyValue">{{ item.article }}</div></div> {% endif %} {% if user.is_staff %} <div class="propertyTable"><div class="propertyName">Цена розница</div><div class="propertyValue">{{ item.price }}</div></div> <div class="propertyTable"><div class="propertyName">Цена опт</div><div class="propertyValue">{{ item.price_opt }}</div></div> <div class="propertyTable"><div class="propertyName">Цена база</div><div class="propertyValue">{{ item.price_mopt }}</div></div> <div class="propertyTable"><a href="/admin/catalog/catalogitem/{{ item.id }}/change/">редактировать</a></div> {% endif %} {% for attr in item.attributes.all %} <div class="propertyTable"><div class="propertyName">{{ attr.attrname }}</div><div class="propertyValue">{{ attr.value_c }}</div></div> {% endfor %} </div> </div> </div> </div> </div> <div class="mainContainer" id="browse"> {% if item.info %}<div class="propertyTable"><strong>Описание</strong></div> <div class="propertyTable">{{ item.info |linebreaks }}</div> {% endif %} </div> {% comment %}<div class="changePropertiesGroup"> </div>{% endcomment %} </div> <div id="elementTools" class="column"> <div class="fixContainer"> <div class="mainTool"> {% comment %}<div class="article hidden"> Артикул: <span class="changeArticle" data-first-value=""></span> </div>{% endcomment %} {% if item.promo_discount %} <a class="price changePrice" style="text-decoration: line-through;color:grey ">{{ item.price_old }} ₽</a> {% endif %} <a class="price changePrice">{{ item.get_actual_price}} ₽</a> <div class="row"> <a href="#" class="addCart changeID changeCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="В корзину" class="icon">В корзину</a> </div> </div> </div> </div> </div> </div> {% endblock %} {% block styles %} <link href="{% static 'website/css/popup.css' %}" type="text/css" rel="stylesheet" /> <link href="{% static 'website/css/page_item.css' %}" type="text/css" data-template-style="true" rel="stylesheet" /> <link href="{% static 'website/css/page_list.css' %}" type="text/css" data-template-style="true" rel="stylesheet" /> {% endblock %} {% block scripts %} <script type="text/javascript" src="{% static 'website/js/page_item.js' %}"></script> {% endblock %}