brotherton-erpnext/website/templates/html/product_page.html
2013-06-13 11:21:35 +05:30

63 lines
2.2 KiB
HTML

{% extends "app/website/templates/html/page.html" %}
{% block javascript %}
{% include "app/website/templates/js/product_page.js" %}
{% endblock %}
{% block css %}
{% include "app/website/templates/css/product_page.css" %}
{% endblock %}
{% block content %}
{% include 'app/website/templates/html/product_search_box.html' %}
{% include 'app/website/templates/html/product_breadcrumbs.html' %}
<div class="col col-lg-12 product-page-content" itemscope itemtype="http://schema.org/Product">
<div class="row">
<div class="col col-lg-6">
{% if slideshow %}
{% include "app/website/templates/html/slideshow.html" %}
{% else %}
{% if website_image %}
<image itemprop="image" class="item-main-image"
src="{{ website_image }}" />
{% else %}
<div class="img-area">
{% include 'app/website/templates/html/product_missing_image.html' %}
</div>
{% endif %}
{% endif %}
</div>
<div class="col col-lg-6">
<h3 itemprop="name" style="margin-top: 0px;">{{ item_name }}</h3>
<p class="help">Item Code: <span itemprop="productID">{{ name }}</span></p>
<h4>Product Description</h4>
<div itemprop="description">
{{ web_long_description or web_short_description or
"[No description given]" }}
</div>
<div class="item-price-info" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div class="item-price hide" itemprop="price"></div>
<div class="item-stock" itemprop="availablity"></div>
<button class="btn btn-primary item-add-to-cart hide">Add to Cart</button>
<button class="btn btn-default item-remove-from-cart hide">Remove from Cart</button>
</div>
</div>
</div>
{% if obj.doclist.get({"doctype":"Item Website Specification"}) -%}
<div class="row" style="margin-top: 20px">
<div class="col col-lg-12">
<h4>Specifications</h4>
<table class="table table-bordered" style="width: 100%">
{% for d in obj.doclist.get(
{"doctype":"Item Website Specification"}) -%}
<tr>
<td style="width: 30%;">{{ d.label }}</td>
<td>{{ d.description }}</td>
</tr>
{%- endfor %}
</table>
</div>
</div>
{%- endif %}
</div>
{% endblock %}