From 8b2257161fc0f4908b83605ee8edbecad9483eea Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 15 Feb 2017 19:17:42 +0100 Subject: [PATCH] Fix voucher redemption and event index after c4bf73c --- .../templates/pretixpresale/event/voucher.html | 12 +++++++----- src/pretix/presale/views/cart.py | 4 +--- src/pretix/presale/views/event.py | 3 --- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index b5df5273a..6ae4d67a4 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -36,7 +36,8 @@ {% endif %} {{ item.name }} - {% if item.description %}

{{ item.description|localize|rich_text }}

{% endif %} + {% if item.description %} +

{{ item.description|localize|rich_text }}

{% endif %}
{% if item.min_price != item.max_price or item.free_price %} @@ -65,10 +66,11 @@ placeholder="0" min="{{ var.price|stringformat:"0.2f" }}" name="price_{{ item.id }}_{{ var.id }}" - step="any" value="{{ var.price|stringformat:"0.2f" }}"> + step="any" + value="{{ var.display_price|stringformat:"0.2f" }}">
{% else %} - {{ event.currency }} {{ var.price|floatformat:2 }} + {{ event.currency }} {{ var.display_price|floatformat:2 }} {% endif %} {% if item.tax_rate %} {% blocktrans trimmed with rate=item.tax_rate %} @@ -81,7 +83,7 @@