From 3c57f35cb1607c1f4d6bab735cbd27b5f33eadef Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 18:00:39 +1000 Subject: [PATCH] Add project_template Demo project_template for product index page. --- .../product/product_index.html | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 longclaw/project_template/product/product_index.html diff --git a/longclaw/project_template/product/product_index.html b/longclaw/project_template/product/product_index.html new file mode 100644 index 0000000..3de42a8 --- /dev/null +++ b/longclaw/project_template/product/product_index.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load wagtailcore_tags wagtailimages_tags %} + +{% block body_class %}template-productindex{% endblock %} + +{% block content %} +

{{ page.title }}

+
+{% for post in product %} + {% with post=post.specific %} +
+
+

{{ post.title }}

+

{{ post.description|richtext }}

+
+
+ {% endwith %} +{% endfor %} +
+{% endblock %}