blob: f24b1a678b11d23436521083afd75468de13c239 [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;">
Rushabh Mehta156ce602015-09-11 18:49:59 +053030 <h4 class="item-price" itemprop="price"></h4>
31 <div class="item-stock" itemprop="availablity"></div>
32 <div class="item-cart hide">
Rushabh Mehta80d2a552015-10-05 16:27:52 +053033 {% if has_variants %}
34 {% for d in attributes %}
35 <div class="item-view-attribute"
36 style="margin-bottom: 10px;">
37 <h6 class="text-muted">{{ _(d.attribute) }}</h6>
38 <select class="form-control"
39 style="max-width: 140px"
40 data-attribute="{{ d.attribute }}">
41 {% for value in attribute_values[d.attribute] %}
42 <option value="{{ value }}">{{ _(value) }}</option>
43 {% endfor %}
44 </select>
45 </div>
46 {% endfor %}
47 {% endif %}
48 </select>
Rushabh Mehta156ce602015-09-11 18:49:59 +053049 <div id="item-add-to-cart">
50 <button class="btn btn-primary btn-sm">
51 {{ _("Add to Cart") }}</button>
52 </div>
53 <div id="item-update-cart"
54 style="display: none;
55 padding-left: 0px; padding-right: 0px;
56 padding-top: 10px;">
57 <div>
58 <input class="form-control"
59 type="text" style="max-width: 140px;">
60 </div>
61 <div style="margin-top: 10px;">
62 <button class="btn btn-default btn-sm">
63 {{ _("Update") }}</button>
64 </div>
65 <div style="margin-top: 5px;">
66 <a href="/cart" class="text-muted small">
67 {{ _("View Cart") }}</a>
68 </div>
69 </div>
70 </div>
Anand Doshi5d591eb2014-04-18 16:15:31 +053071 </div>
72 </div>
73 </div>
74 {% if doc.get({"doctype":"Item Website Specification"}) -%}
75 <div class="row" style="margin-top: 20px">
76 <div class="col-md-12">
Rushabh Mehta3f517052014-04-21 22:10:15 +053077 <h4>{{ _("Specifications") }}</h4>
Anand Doshi5d591eb2014-04-18 16:15:31 +053078 <table class="table table-bordered" style="width: 100%">
79 {% for d in doc.get(
80 {"doctype":"Item Website Specification"}) -%}
81 <tr>
82 <td style="width: 30%;">{{ d.label }}</td>
83 <td>{{ d.description }}</td>
84 </tr>
85 {%- endfor %}
86 </table>
87 </div>
88 </div>
89 {%- endif %}
90 </div>
91</div>
92<script>
93 {% include "templates/includes/product_page.js" %}
94
Rushabh Mehta80d2a552015-10-05 16:27:52 +053095 {% if variant_info %}
96 window.variant_info = {{ variant_info }};
Rushabh Mehta6e322d02015-10-07 14:30:19 +053097 {% else %}
98 window.variant_info = null;
Rushabh Mehta80d2a552015-10-05 16:27:52 +053099 {% endif %}
Anand Doshi5d591eb2014-04-18 16:15:31 +0530100</script>
101{% endblock %}