You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
565 B
18 lines
565 B
11 years ago
|
{% load static %}
|
||
|
{% load i18n %}
|
||
|
|
||
|
<div class="row">
|
||
|
{% for p in products %}
|
||
|
<div class="{{ class|default:"col-xs-6 col-md-3" }}">
|
||
|
<div class="thumbnail">
|
||
|
<img src="{% if p.image_thumbnail %}{{ p.image_thumbnail.url }}{% else %}{% static "images/no-image.png" %}{% endif %}" alt="{% trans "Product image" %}" style="width: 100%" />
|
||
|
<div class="caption">
|
||
|
<h3>{{ p.name }}</h3>
|
||
|
<h4>{{ p.price|floatformat:2 }} €</h4>
|
||
|
<a class="btn btn-primary" href="{% url 'buy' p.id %}">{% trans "Buy" %}</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|