brotherton-erpnext/website/templates/html/product_page.html

74 lines
2.4 KiB
HTML
Raw Normal View History

{% extends "app/website/templates/html/page.html" %}
2012-07-12 13:11:12 +00:00
{% block javascript %}
{% include "app/website/templates/js/product_page.js" %}
2012-07-12 13:11:12 +00:00
{% endblock %}
{% block css %}
{% include "app/website/templates/css/product_page.css" %}
2012-07-12 13:11:12 +00:00
{% endblock %}
{% block content %}
{% include 'app/website/templates/html/product_search_box.html' %}
{% include 'app/website/templates/html/product_breadcrumbs.html' %}
2013-08-21 12:18:08 +00:00
<div class="col-md-12 product-page-content" itemscope itemtype="http://schema.org/Product">
2013-02-21 08:55:30 +00:00
<div class="row">
2013-08-21 12:18:08 +00:00
<div class="col-md-6">
2013-03-14 11:15:28 +00:00
{% if slideshow %}
{% include "app/website/templates/html/slideshow.html" %}
2013-03-14 11:15:28 +00:00
{% else %}
{% if website_image %}
<image itemprop="image" class="item-main-image"
src="{{ website_image }}" />
2013-03-14 11:15:28 +00:00
{% else %}
<div class="img-area">
{% include 'app/website/templates/html/product_missing_image.html' %}
2013-03-14 11:15:28 +00:00
</div>
{% endif %}
{% endif %}
</div>
2013-08-21 12:18:08 +00:00
<div class="col-md-6">
2013-03-14 11:15:28 +00:00
<h3 itemprop="name" style="margin-top: 0px;">{{ item_name }}</h3>
2013-06-13 05:51:35 +00:00
<p class="help">Item Code: <span itemprop="productID">{{ name }}</span></p>
2013-03-14 11:15:28 +00:00
<h4>Product Description</h4>
2013-02-21 08:55:30 +00:00
<div itemprop="description">
2013-07-15 12:58:14 +00:00
{{ web_long_description or description or "[No description given]" }}
2013-02-21 08:55:30 +00:00
</div>
2013-06-19 09:27:14 +00:00
<div style="min-height: 100px; margin: 10px 0;">
<div class="item-price-info" style="display: none;">
<h4 class="item-price" itemprop="price"></h4>
<div class="item-stock" itemprop="availablity"></div>
<div id="item-add-to-cart">
<button class="btn btn-primary">
<i class="icon-shopping-cart"></i> Add to Cart</button>
2013-06-19 09:27:14 +00:00
</div>
2013-08-21 12:18:08 +00:00
<div id="item-update-cart" class="input-group col-md-4" style="display: none;
padding-left: 0px; padding-right: 0px;">
2013-08-21 12:18:08 +00:00
<input class="form-control" type="text">
2013-06-19 09:27:14 +00:00
<div class="input-group-btn">
<button class="btn btn-primary">
<i class="icon-ok"></i></button>
2013-06-19 09:27:14 +00:00
</div>
</div>
</div>
2013-06-13 05:51:35 +00:00
</div>
</div>
</div>
{% if obj.doclist.get({"doctype":"Item Website Specification"}) -%}
<div class="row" style="margin-top: 20px">
2013-08-21 12:18:08 +00:00
<div class="col-md-12">
2013-03-14 11:15:28 +00:00
<h4>Specifications</h4>
2013-03-14 09:03:31 +00:00
<table class="table table-bordered" style="width: 100%">
{% for d in obj.doclist.get(
{"doctype":"Item Website Specification"}) -%}
2013-03-14 09:03:31 +00:00
<tr>
<td style="width: 30%;">{{ d.label }}</td>
<td>{{ d.description }}</td>
</tr>
{%- endfor %}
2013-03-14 09:03:31 +00:00
</table>
</div>
</div>
{%- endif %}
</div>
2012-07-12 13:11:12 +00:00
{% endblock %}