2012-07-12 13:11:12 +00:00
|
|
|
{% extends "html/page.html" %}
|
|
|
|
|
|
|
|
{% block javascript %}
|
|
|
|
{% include "js/product_page.js" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block css %}
|
|
|
|
{% include "css/product_page.css" %}
|
|
|
|
{% endblock %}
|
2012-06-26 13:24:10 +00:00
|
|
|
|
2012-07-09 10:26:12 +00:00
|
|
|
{% block title %}
|
|
|
|
{% if item_name != name %}
|
|
|
|
{{ item_name }} [{{ name }}]
|
|
|
|
{% else %}
|
|
|
|
{{ item_name }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2012-06-26 13:24:10 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="layout-wrapper layout-wrapper-background">
|
|
|
|
<div class="web-content" id="content-product-{{ name }}">
|
2012-12-17 10:30:34 +00:00
|
|
|
<div class="layout-main" style="padding: 30px;">
|
2012-12-18 09:17:54 +00:00
|
|
|
{% include 'html/product_search_box.html' %}
|
2012-06-26 13:24:10 +00:00
|
|
|
<h1>{{ item_name }}</h1>
|
2012-12-19 04:44:59 +00:00
|
|
|
<p class="help">Item Code: {{ name }}</p>
|
2012-07-09 10:26:12 +00:00
|
|
|
<div class="product-page-content">
|
2012-12-18 06:17:13 +00:00
|
|
|
<div class="span6">
|
2012-06-27 06:36:45 +00:00
|
|
|
{% if website_image %}
|
2012-12-17 10:30:34 +00:00
|
|
|
<image class="item-main-image" src="files/{{ website_image }}" />
|
2012-07-09 10:26:12 +00:00
|
|
|
{% else %}
|
2012-12-18 09:17:54 +00:00
|
|
|
<div class="img-area">
|
|
|
|
<div style='background-color: #eee; padding: 40px;
|
2012-12-19 04:44:59 +00:00
|
|
|
width: 32px; font-size: 32px; color: #888;' title='No Image'>
|
2012-12-18 09:17:54 +00:00
|
|
|
<i class='icon-camera'></i></div>
|
|
|
|
</div>
|
|
|
|
|
2012-06-27 06:36:45 +00:00
|
|
|
{% endif %}
|
2012-07-09 10:26:12 +00:00
|
|
|
<br><br>
|
|
|
|
</div>
|
2012-12-18 06:17:13 +00:00
|
|
|
<div class="span3">
|
|
|
|
<div class="item-price hide">
|
|
|
|
<p>Price:</p>
|
|
|
|
</div>
|
|
|
|
<div class="item-stock"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="span9">
|
|
|
|
<h3>Product Description</h3>
|
|
|
|
<div>
|
2012-12-19 04:44:59 +00:00
|
|
|
{{ web_long_description or web_short_description or
|
|
|
|
"[No description given]" }}
|
2012-12-18 06:17:13 +00:00
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
{% if obj.doclist.get({"doctype":"Item Website Specification"}) %}
|
|
|
|
<h3>Specifications</h3>
|
|
|
|
<table class="table table-striped table-bordered" style="width: 100%">
|
|
|
|
{% for d in obj.doclist.get(
|
|
|
|
{"doctype":"Item Website Specification"}) %}
|
|
|
|
<tr>
|
2012-12-18 09:17:54 +00:00
|
|
|
<td style="min-width: 150px;">{{ d.label }}</td>
|
2012-12-18 06:17:13 +00:00
|
|
|
<td>{{ d.description }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
2012-06-26 13:24:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-07-12 13:11:12 +00:00
|
|
|
{% endblock %}
|