From 8a9e6c600f533e33d8ddab17f51f2276c80040f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 29 Sep 2016 18:14:47 +0200 Subject: [PATCH] Remove the booking button if there is no price --- app/templates/agenda/includes/event_metainfo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
-- 2.39.5