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