blob: aa02376bce1e18edbdcb51000a21f06a37554cc5 [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 %}
Anand Doshida858cc2015-02-24 17:50:44 +05306{% from "erpnext/templates/includes/macros.html" import product_image %}
Anand Doshi5d591eb2014-04-18 16:15:31 +05307<div class="item-content">
8 {% include 'templates/includes/product_search_box.html' %}
Anand Doshi5d591eb2014-04-18 16:15:31 +05309 <div class="product-page-content" itemscope itemtype="http://schema.org/Product">
10 <div class="row">
Anand Doshida858cc2015-02-24 17:50:44 +053011 <div class="col-sm-5">
Anand Doshi5d591eb2014-04-18 16:15:31 +053012 {% if slideshow %}
13 {% include "templates/includes/slideshow.html" %}
14 {% else %}
Anand Doshida858cc2015-02-24 17:50:44 +053015 {{ product_image(website_image, "product-full-image") }}
Anand Doshi5d591eb2014-04-18 16:15:31 +053016 {% endif %}
17 </div>
Anand Doshida858cc2015-02-24 17:50:44 +053018 <div class="col-sm-7">
Rushabh Mehta3f517052014-04-21 22:10:15 +053019 <!-- <h3 itemprop="name" style="margin-top: 0px;">{{ item_name }}</h3> -->
Anand Doshi5d591eb2014-04-18 16:15:31 +053020 <div itemprop="description">
Rushabh Mehta3f517052014-04-21 22:10:15 +053021 {{ web_long_description or description or _("No description given") }}
Anand Doshi5d591eb2014-04-18 16:15:31 +053022 </div>
Rushabh Mehta3f517052014-04-21 22:10:15 +053023 <p class="text-muted">
24 {{ _("Item Code") }}: <span itemprop="productID">{{ name }}</span></p>
25 <br>
Anand Doshi5d591eb2014-04-18 16:15:31 +053026 <div style="min-height: 100px; margin: 10px 0;">
27 <div class="item-price-info" style="display: none;">
28 <h4 class="item-price" itemprop="price"></h4>
29 <div class="item-stock" itemprop="availablity"></div>
30 <div id="item-add-to-cart">
31 <button class="btn btn-primary">
Rushabh Mehta3f517052014-04-21 22:10:15 +053032 <i class="icon-shopping-cart"></i> + {{ _("Add to Cart") }}</button>
Anand Doshi5d591eb2014-04-18 16:15:31 +053033 </div>
34 <div id="item-update-cart" class="input-group col-md-4" style="display: none;
35 padding-left: 0px; padding-right: 0px;">
36 <input class="form-control" type="text">
37 <div class="input-group-btn">
38 <button class="btn btn-primary">
39 <i class="icon-ok"></i></button>
40 </div>
41 </div>
42 </div>
43 </div>
44 </div>
45 </div>
46 {% if doc.get({"doctype":"Item Website Specification"}) -%}
47 <div class="row" style="margin-top: 20px">
48 <div class="col-md-12">
Rushabh Mehta3f517052014-04-21 22:10:15 +053049 <h4>{{ _("Specifications") }}</h4>
Anand Doshi5d591eb2014-04-18 16:15:31 +053050 <table class="table table-bordered" style="width: 100%">
51 {% for d in doc.get(
52 {"doctype":"Item Website Specification"}) -%}
53 <tr>
54 <td style="width: 30%;">{{ d.label }}</td>
55 <td>{{ d.description }}</td>
56 </tr>
57 {%- endfor %}
58 </table>
59 </div>
60 </div>
61 {%- endif %}
62 </div>
63</div>
64<script>
65 {% include "templates/includes/product_page.js" %}
66
67 $(function() {
68 if(window.logged_in && getCookie("system_user")==="yes") {
69 frappe.has_permission("Item", "{{ name }}", "write", function(r) {
70 frappe.require("/assets/frappe/js/frappe/website/editable.js");
71 frappe.make_editable($('[itemprop="description"]'), "Item", "{{ name }}", "web_long_description");
72 });
73 }
74 });
75</script>
76{% endblock %}