From 0fcc5a24fe351c0e03de9e50c064e5183ad0ce8b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 19 Oct 2016 09:24:17 +0200 Subject: [PATCH] Do not set step size on number fields --- src/pretix/presale/templates/pretixpresale/event/index.html | 4 ++-- src/pretix/presale/templates/pretixpresale/event/voucher.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/index.html b/src/pretix/presale/templates/pretixpresale/event/index.html index 939df1b68..da3b0a608 100644 --- a/src/pretix/presale/templates/pretixpresale/event/index.html +++ b/src/pretix/presale/templates/pretixpresale/event/index.html @@ -123,7 +123,7 @@ placeholder="0" min="{{ var.price|stringformat:"0.2f" }}" name="price_{{ item.id }}_{{ var.id }}" - step="0.01" value="{{ var.price|stringformat:"0.2f" }}"> + step="any" value="{{ var.price|stringformat:"0.2f" }}"> {% else %} {{ event.currency }} {{ var.price|floatformat:2 }} @@ -173,7 +173,7 @@ + step="any" value="{{ item.price|stringformat:"0.2f" }}"> {% else %} {{ event.currency }} {{ item.price|floatformat:2 }} diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 45a39192f..488c500e4 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -65,7 +65,7 @@ placeholder="0" min="{{ var.price|stringformat:"0.2f" }}" name="price_{{ item.id }}_{{ var.id }}" - step="0.01" value="{{ var.price|stringformat:"0.2f" }}"> + step="any" value="{{ var.price|stringformat:"0.2f" }}"> {% else %} {{ event.currency }} {{ var.price|floatformat:2 }} @@ -114,7 +114,7 @@ + step="any" value="{{ item.price|stringformat:"0.2f" }}"> {% else %} {{ event.currency }} {{ item.price|floatformat:2 }}