[website] [minor] moving to framework

This commit is contained in:
Rushabh Mehta
2013-09-10 12:51:52 +05:30
parent 4c6120ae04
commit 7c2312a74c
20 changed files with 43 additions and 30 deletions

View File

View File

@@ -1,28 +1,32 @@
{% extends "app/website/templates/html/page.html" %}
{% extends base_template %}
{% block javascript %}
{% include "app/website/templates/js/product_page.js" %}
<script>
{% include "app/stock/doctype/item/templates/includes/product_page.js" %}
</script>
{% endblock %}
{% block css %}
{% include "app/website/templates/css/product_page.css" %}
<style>
{% include "app/stock/doctype/item/templates/includes/product_page.css" %}
</style>
{% endblock %}
{% block content %}
{% include 'app/website/templates/html/product_search_box.html' %}
{% include 'app/website/templates/html/product_breadcrumbs.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
<div class="col-md-12 product-page-content" itemscope itemtype="http://schema.org/Product">
<div class="row">
<div class="col-md-6">
{% if slideshow %}
{% include "app/website/templates/html/slideshow.html" %}
{% include "lib/website/templates/includes/html/slideshow.html" %}
{% else %}
{% if website_image %}
<image itemprop="image" class="item-main-image"
src="{{ website_image }}" />
{% else %}
<div class="img-area">
{% include 'app/website/templates/html/product_missing_image.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_missing_image.html' %}
</div>
{% endif %}
{% endif %}

View File

@@ -0,0 +1,2 @@
doctype = "Item"
condition_field = "show_in_website"

View File

@@ -1,4 +1,4 @@
{% if obj.parent_groups and len(obj.parent_groups) > 1 %}
{% if obj.parent_groups and (obj.parent_groups|length) > 1 %}
<div class="col-md-12">
<div class="clearfix">
<ul class="breadcrumb">

View File

@@ -4,7 +4,7 @@
{%- if website_image -%}
<img class="product-image" style="width: 80%; margin: auto;" src="{{ website_image }}">
{%- else -%}
{% include 'app/website/templates/html/product_missing_image.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_missing_image.html' %}
{%- endif -%}
</a>
</div>

View File

@@ -1,4 +1,4 @@
{% extends "app/website/templates/html/page.html" %}
{% extends base_template %}
{% set title="Product Search" %}