From: Guillaume Pellerin Date: Thu, 24 Sep 2015 14:30:27 +0000 (+0200) Subject: fix price display on categories X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2deaf506ac30a3930bea7121b35677a4a44670df;p=diggersdigest.git fix price display on categories --- diff --git a/app/records/static/css/dig2.css b/app/records/static/css/dig2.css index a649de9..6278061 100644 --- a/app/records/static/css/dig2.css +++ b/app/records/static/css/dig2.css @@ -61,3 +61,7 @@ hr { .audio { margin-top: 2em; } + +.error-msg { + font-size: 85%; +} diff --git a/app/templates/pages/category.html b/app/templates/pages/category.html index 910be05..683b3d1 100644 --- a/app/templates/pages/category.html +++ b/app/templates/pages/category.html @@ -61,23 +61,23 @@
{% if product.image %} - + {% else %} -
+
{% endif %} -
diff --git a/app/templates/shop/includes/price.html b/app/templates/shop/includes/price.html index adcf167..bf8de99 100644 --- a/app/templates/shop/includes/price.html +++ b/app/templates/shop/includes/price.html @@ -2,18 +2,18 @@
-{% if product.available and has_available_variations %} +{% if product.available and has_available_variations and product.variation.first.unit_price %} +
+{% errors_for add_product_form %}
{% csrf_token %}
{% fields_for add_product_form %}