From: Jérémy Fabre Date: Wed, 5 Oct 2016 13:10:44 +0000 (+0200) Subject: Add the booking button on the generic card X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d7a5925613a2aa1220f9bf0c7d352cc39063accf;p=mezzo.git Add the booking button on the generic card --- 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 %}