blob: 4bd521d5a7d2507e5979e710d264a1425dd6aaf5 [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 Doshi25ef4ff2015-10-20 18:34:21 +053029 <div class="item-attribute-selectors">
30 {% if has_variants %}
31 {% for d in attributes %}
32 <div class="item-view-attribute"
33 style="margin-bottom: 10px;">
34 <h6 class="text-muted">{{ _(d.attribute) }}</h6>
35 <select class="form-control"
36 style="max-width: 140px"
37 data-attribute="{{ d.attribute }}">
38 {% for value in attribute_values[d.attribute] %}
39 <option value="{{ value }}"
40 {% if selected_attributes and selected_attributes[d.attribute]==value -%} selected {%- endif %}>
41 {{ _(value) }}
42 </option>
43 {% endfor %}
44 </select>
45 </div>
46 {% endfor %}
47 {% endif %}
48 </div>
49 <br>
Anand Doshi5d591eb2014-04-18 16:15:31 +053050 <div style="min-height: 100px; margin: 10px 0;">
Rushabh Mehta156ce602015-09-11 18:49:59 +053051 <h4 class="item-price" itemprop="price"></h4>
52 <div class="item-stock" itemprop="availablity"></div>
53 <div class="item-cart hide">
54 <div id="item-add-to-cart">
55 <button class="btn btn-primary btn-sm">
56 {{ _("Add to Cart") }}</button>
57 </div>
58 <div id="item-update-cart"
59 style="display: none;
60 padding-left: 0px; padding-right: 0px;
61 padding-top: 10px;">
62 <div>
63 <input class="form-control"
64 type="text" style="max-width: 140px;">
65 </div>
66 <div style="margin-top: 10px;">
67 <button class="btn btn-default btn-sm">
68 {{ _("Update") }}</button>
69 </div>
70 <div style="margin-top: 5px;">
71 <a href="/cart" class="text-muted small">
72 {{ _("View Cart") }}</a>
73 </div>
74 </div>
75 </div>
Anand Doshi5d591eb2014-04-18 16:15:31 +053076 </div>
77 </div>
78 </div>
Anand Doshi7c0eadb2015-10-20 17:30:02 +053079 {% if website_specifications -%}
80 <div class="row item-website-specification" style="margin-top: 20px">
Anand Doshi5d591eb2014-04-18 16:15:31 +053081 <div class="col-md-12">
Rushabh Mehta3f517052014-04-21 22:10:15 +053082 <h4>{{ _("Specifications") }}</h4>
Anand Doshi7c0eadb2015-10-20 17:30:02 +053083
Anand Doshi5d591eb2014-04-18 16:15:31 +053084 <table class="table table-bordered" style="width: 100%">
Anand Doshi7c0eadb2015-10-20 17:30:02 +053085 {% for d in website_specifications -%}
Anand Doshi5d591eb2014-04-18 16:15:31 +053086 <tr>
87 <td style="width: 30%;">{{ d.label }}</td>
88 <td>{{ d.description }}</td>
89 </tr>
90 {%- endfor %}
91 </table>
92 </div>
93 </div>
94 {%- endif %}
95 </div>
96</div>
97<script>
98 {% include "templates/includes/product_page.js" %}
99
Rushabh Mehta80d2a552015-10-05 16:27:52 +0530100 {% if variant_info %}
101 window.variant_info = {{ variant_info }};
Rushabh Mehta6e322d02015-10-07 14:30:19 +0530102 {% else %}
103 window.variant_info = null;
Rushabh Mehta80d2a552015-10-05 16:27:52 +0530104 {% endif %}
Anand Doshi5d591eb2014-04-18 16:15:31 +0530105</script>
106{% endblock %}