diff --git a/src/pretix/presale/templates/pretixpresale/event/order.html b/src/pretix/presale/templates/pretixpresale/event/order.html index f49729fc9e..25f80f2b6b 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order.html +++ b/src/pretix/presale/templates/pretixpresale/event/order.html @@ -3,6 +3,14 @@ {% load bootstrap3 %} {% block title %}{% trans "Order details" %}{% endblock %} {% block content %} + {% if "thanks" in request.GET %} +
+ +

{% trans "Thank you!" %}

+

{% trans "Your order has been placed successfully. See below for details." %}

+

{% trans "We also sent you an email with a link to this page if you want to come back later." %}

+
+ {% endif %}

{% blocktrans trimmed with code=order.code %} Your order: {{ code }} diff --git a/src/static/pretixpresale/less/main.less b/src/static/pretixpresale/less/main.less index dde6291e71..487937a0dc 100644 --- a/src/static/pretixpresale/less/main.less +++ b/src/static/pretixpresale/less/main.less @@ -43,3 +43,41 @@ a:hover .panel-primary > .panel-heading { background-color: darken(@btn-primary-bg, 10%); border-color: darken(@btn-primary-border, 12%); } + +.thank-you { + margin-bottom: 25px; + .fa { + font-size: 150px; + line-height: 170px; + display: block; + color: @brand-success; + } + + h2 { + color: @brand-success; + } +} +@media (min-width: @screen-md-min) { + .thank-you { + height: 170px; + width: 70%; + margin: auto; + + .fa { + float: left; + margin-right: 30px; + } + + h2 { + padding-top: 35px; + } + } +} +@media (max-width: @screen-sm-max) { + .thank-you { + text-align: center; + } + h2 { + margin-top: 0; + } +} \ No newline at end of file