From: Jérémy Fabre Date: Thu, 29 Sep 2016 16:14:47 +0000 (+0200) Subject: Remove the booking button if there is no price X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8a9e6c600f533e33d8ddab17f51f2276c80040f6;p=mezzo.git Remove the booking button if there is no price --- diff --git a/app/templates/agenda/includes/event_metainfo.html b/app/templates/agenda/includes/event_metainfo.html index 0d7b1ca2..4b5f2e7c 100644 --- a/app/templates/agenda/includes/event_metainfo.html +++ b/app/templates/agenda/includes/event_metainfo.html @@ -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 %}
Tarifs