]> git.parisson.com Git - mezzo.git/commitdiff
Remove the booking button if there is no price
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 29 Sep 2016 16:14:47 +0000 (18:14 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 29 Sep 2016 16:14:47 +0000 (18:14 +0200)
app/templates/agenda/includes/event_metainfo.html

index 0d7b1ca2283895d3cb8170048d1ae1dbbd222e75..4b5f2e7c0a4b9907862eea1b52b4a418a25dc2ed 100644 (file)
@@ -27,7 +27,7 @@
 
 {% if unit_booking %}
 
-    {% if event.prices.all.0|floatformat != '0' %}
+    {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 %}
         {% for price in event.prices.all %}
             {% if forloop.first %}
                 <div class="page__meta-title">Tarifs</div>