blob: ccb992b804ef50f0c375ee42bb48a115651eeed6 [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 }}">
Anand Doshi7c0eadb2015-10-20 17:30:02 +053041 {% for value in attribute_values[d.attribute] %}
42 <option value="{{ value }}"
43 {% if selected_attributes and selected_attributes[d.attribute]==value -%} selected {%- endif %}>
44 {{ _(value) }}
45 </option>
Rushabh Mehta80d2a552015-10-05 16:27:52 +053046 {% endfor %}
47 </select>
48 </div>
49 {% endfor %}
50 {% endif %}
51 </select>
Rushabh Mehta156ce602015-09-11 18:49:59 +053052 <div id="item-add-to-cart">
53 <button class="btn btn-primary btn-sm">
54 {{ _("Add to Cart") }}</button>
55 </div>
56 <div id="item-update-cart"
57 style="display: none;
58 padding-left: 0px; padding-right: 0px;
59 padding-top: 10px;">
60 <div>
61 <input class="form-control"
62 type="text" style="max-width: 140px;">
63 </div>
64 <div style="margin-top: 10px;">
65 <button class="btn btn-default btn-sm">
66 {{ _("Update") }}</button>
67 </div>
68 <div style="margin-top: 5px;">
69 <a href="/cart" class="text-muted small">
70 {{ _("View Cart") }}</a>
71 </div>
72 </div>
73 </div>
Anand Doshi5d591eb2014-04-18 16:15:31 +053074 </div>
75 </div>
76 </div>
Anand Doshi7c0eadb2015-10-20 17:30:02 +053077 {% if website_specifications -%}
78 <div class="row item-website-specification" style="margin-top: 20px">
Anand Doshi5d591eb2014-04-18 16:15:31 +053079 <div class="col-md-12">
Rushabh Mehta3f517052014-04-21 22:10:15 +053080 <h4>{{ _("Specifications") }}</h4>
Anand Doshi7c0eadb2015-10-20 17:30:02 +053081
Anand Doshi5d591eb2014-04-18 16:15:31 +053082 <table class="table table-bordered" style="width: 100%">
Anand Doshi7c0eadb2015-10-20 17:30:02 +053083 {% for d in website_specifications -%}
Anand Doshi5d591eb2014-04-18 16:15:31 +053084 <tr>
85 <td style="width: 30%;">{{ d.label }}</td>
86 <td>{{ d.description }}</td>
87 </tr>
88 {%- endfor %}
89 </table>
90 </div>
91 </div>
92 {%- endif %}
93 </div>
94</div>
95<script>
96 {% include "templates/includes/product_page.js" %}
97
Rushabh Mehta80d2a552015-10-05 16:27:52 +053098 {% if variant_info %}
99 window.variant_info = {{ variant_info }};
Rushabh Mehta6e322d02015-10-07 14:30:19 +0530100 {% else %}
101 window.variant_info = null;
Rushabh Mehta80d2a552015-10-05 16:27:52 +0530102 {% endif %}
Anand Doshi5d591eb2014-04-18 16:15:31 +0530103</script>
104{% endblock %}