Add project_template

Demo project_template for product index page.
pull/13/head
Alex 2017-02-07 18:00:39 +10:00 zatwierdzone przez GitHub
rodzic cfccdd76c4
commit 3c57f35cb1
1 zmienionych plików z 21 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body_class %}template-productindex{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
<div class="row">
{% for post in product %}
{% with post=post.specific %}
<div><a href="{% pageurl post %}">
<div class="caption_news">
<h4>{{ post.title }}</h4>
<p>{{ post.description|richtext }}</p>
</div></a>
</div>
{% endwith %}
{% endfor %}
</div>
{% endblock %}