blob: d560b80d000d40be4893cd4b7c28f4fe54bdf05e [file] [log] [blame]
Anand Doshi5d591eb2014-04-18 16:15:31 +05301{% block title %} {{ title }} {% endblock %}
2
3{% block header %}<h2>{{ title }}</h2>{% endblock %}
4
5{% block content %}
6<div class="item-content">
7 {% include 'templates/includes/product_search_box.html' %}
Anand Doshi5d591eb2014-04-18 16:15:31 +05308 <div class="product-page-content" itemscope itemtype="http://schema.org/Product">
9 <div class="row">
10 <div class="col-md-6">
11 {% if slideshow %}
12 {% include "templates/includes/slideshow.html" %}
13 {% else %}
14 {% if website_image %}
15 <image itemprop="image" class="item-main-image"
16 src="{{ website_image }}" />
17 {% else %}
18 <div class="img-area">
19 {% include 'templates/includes/product_missing_image.html' %}
20 </div>
21 {% endif %}
22 {% endif %}
23 </div>
24 <div class="col-md-6">
25 <h3 itemprop="name" style="margin-top: 0px;">{{ item_name }}</h3>
26 <p class="help">Item Code: <span itemprop="productID">{{ name }}</span></p>
27 <h4>Product Description</h4>
28 <div itemprop="description">
29 {{ web_long_description or description or "[No description given]" }}
30 </div>
31 <div style="min-height: 100px; margin: 10px 0;">
32 <div class="item-price-info" style="display: none;">
33 <h4 class="item-price" itemprop="price"></h4>
34 <div class="item-stock" itemprop="availablity"></div>
35 <div id="item-add-to-cart">
36 <button class="btn btn-primary">
37 <i class="icon-shopping-cart"></i> Add to Cart</button>
38 </div>
39 <div id="item-update-cart" class="input-group col-md-4" style="display: none;
40 padding-left: 0px; padding-right: 0px;">
41 <input class="form-control" type="text">
42 <div class="input-group-btn">
43 <button class="btn btn-primary">
44 <i class="icon-ok"></i></button>
45 </div>
46 </div>
47 </div>
48 </div>
49 </div>
50 </div>
51 {% if doc.get({"doctype":"Item Website Specification"}) -%}
52 <div class="row" style="margin-top: 20px">
53 <div class="col-md-12">
54 <h4>Specifications</h4>
55 <table class="table table-bordered" style="width: 100%">
56 {% for d in doc.get(
57 {"doctype":"Item Website Specification"}) -%}
58 <tr>
59 <td style="width: 30%;">{{ d.label }}</td>
60 <td>{{ d.description }}</td>
61 </tr>
62 {%- endfor %}
63 </table>
64 </div>
65 </div>
66 {%- endif %}
67 </div>
68</div>
69<script>
70 {% include "templates/includes/product_page.js" %}
71
72 $(function() {
73 if(window.logged_in && getCookie("system_user")==="yes") {
74 frappe.has_permission("Item", "{{ name }}", "write", function(r) {
75 frappe.require("/assets/frappe/js/frappe/website/editable.js");
76 frappe.make_editable($('[itemprop="description"]'), "Item", "{{ name }}", "web_long_description");
77 });
78 }
79 });
80</script>
81{% endblock %}
82
83{% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}