Browse files

actually include the new template directory :<

  • Loading branch information...
1 parent 0202150 commit 967a4c0d92a3456034d77af3ab25cc2b7631ec26 Zenobius Jiricek committed Dec 28, 2011
View
1 cmsplugin_configurableproduct/templates/cmsplugin_configurableproduct/base.html
@@ -0,0 +1 @@
+{% include Template %}
View
7 ...gin_configurableproduct/templates/cmsplugin_configurableproduct/product-list/default.html
@@ -0,0 +1,7 @@
+{% for Product in Products %}
+<div id="product-{{ Product.id }}"
+ data-product-type="{{ Product.type|slugify }}"
+ class="product span6">
+ {% include 'cmsplugin_configurable_product/snippets/product-display-only.html' %}
+ </div>
+{% endfor %}
View
12 ...in_configurableproduct/templates/cmsplugin_configurableproduct/product-types/default.html
@@ -0,0 +1,12 @@
+{% for Type in Types %}
+ <div class="product span8"
+ id="product-{{ Type.id }}"
+ data-product-type="{{ Type.name|slugify }}">
+
+ <div class="header">
+ <a href="{% url configurable_products_types Type.name|slugify %}">{{ Type }}</a>
+ </div>
+ <div class="description"></div>
+
+ </div>
+{% endfor %}
View
42 ...gurableproduct/templates/cmsplugin_configurableproduct/snippets/product-display-only.html
@@ -0,0 +1,42 @@
+{% load cms_tags %}
+{% load sekizai_tags %}
+{% load i18n %}
+{% load shop_tags %}
+{% load thumbnail %}
+{% load humanize %}
+
+{% spaceless %}
+ <div class="product product-active-{{ Product.active }}" data-product-slug="{{ Product.slug }}" data-product-active="{{Product.active}}">
+
+ <div class="images">
+ <div class="cover">
+ <a href="{% url product_detail Product.slug %}">
+ {% with Product.productimage_set.all.0 as product_image %}
+ <img class="product-field-type-image product-field-{{ product_image.field.name|slugify }}"
+ src="{% thumbnail product_image.value 240x128 crop='crop_and_scale' %}"/>
+ {% endwith %}
+ </a>
+ </div>
+ </div>
+
+
+ <div class="detail">
+ <div class="description">
+
+ <div class="header">
+ <div class="title">
+ <h4>
+ <a href="{% url product_detail Product.slug %}">
+ {{ Product.name }}</a></h4>
+ </div>
+ </div>
+
+ <div class="detail">
+ </div>
+
+ </div>
+
+ </div>
+
+ </div>
+{% endspaceless %}

0 comments on commit 967a4c0

Please sign in to comment.