From d7a5925613a2aa1220f9bf0c7d352cc39063accf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Wed, 5 Oct 2016 15:10:44 +0200 Subject: [PATCH] Add the booking button on the generic card --- app/templates/core/inc/generic_card.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/templates/core/inc/generic_card.html b/app/templates/core/inc/generic_card.html index a9f6c2dc..366bd0ec 100644 --- a/app/templates/core/inc/generic_card.html +++ b/app/templates/core/inc/generic_card.html @@ -22,6 +22,7 @@ {% elif content.content_type.model == 'event' %}
+ {% if content.content_object.departments.first %} {% with content.content_object.departments.first as department %}
@@ -35,6 +36,15 @@
{% endif %}
+ {% if content.content_object.prices.all.0|floatformat != '0' and content.content_object.prices.all|length > 0 %} + {% for price in content.content_object.prices.all %} + {% if forloop.first %} +
+ {% trans "Reserve" %} +
+ {% endif %} + {% endfor %} + {% endif %} {% endif %} -- 2.39.5