checkout-flow steps to page-title

This commit is contained in:
Richard Schreiber
2021-02-11 17:25:31 +01:00
parent 518c1fbbf2
commit 9f1079dcc4

View File

@@ -1,7 +1,16 @@
{% extends "pretixpresale/event/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block title %}{% trans "Checkout" %}{% endblock %}
{% block title %}
{% for step in checkout_flow %}
{% if request.resolver_match.kwargs.step == step.identifier %}
{% blocktrans trimmed with label=step.label current=forloop.counter total=checkout_flow|length %}
Step {{ current }} of {{ total }}: {{ label }}
{% endblocktrans %}
{% endif %}
{% endfor %}
{% trans "Checkout" %}
{% endblock %}
{% block content %}
<details class="panel panel-default cart" {% if "open_cart" in request.GET %}open{% endif %}>
<summary class="panel-heading">