diff --git a/shop/templates/shop_index.html b/shop/templates/shop_index.html index e84cdf5b..413c786c 100644 --- a/shop/templates/shop_index.html +++ b/shop/templates/shop_index.html @@ -21,42 +21,45 @@
+
- {% for product in products %} + + + + + + + + + + - -
-
- -
-
{{ product.category.name }}
- -

+ {% for product in products %} +

+ + + + + + {% endfor %} -

- Price: {{ product.price|currency }} -

- -

- {{ product.description|truncatechars:30 }} -

- - - Availability:
- {{ product.available_in.lower|date:"Y-m-d H:i" }} - {% if product.available_in.upper %} - - {{ product.available_in.upper|date:"Y-m-d H:i" }} - {% endif %} -
- - - -
- - {% endfor %} + +
ProductCategoryAvailabilityPrice
+ {{ product.name }} - + + + {{ product.category }} + + {{ product.available_in.lower|date:"Y-m-d H:i" }} + {% if product.available_in.upper %} + - {{ product.available_in.upper|date:"Y-m-d H:i" }} + {% endif %} + + {{ product.price|currency }} +
+
{% endblock %}