mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Implement progress indicator during checkout (#677)
* Implement progress indicator during checkout * Do not extend bars to the edge * Wording * Add a bit more margin
This commit is contained in:
@@ -41,7 +41,7 @@ class CheckoutView(View):
|
||||
except CartError as e:
|
||||
cart_error = e
|
||||
|
||||
flow = get_checkout_flow(self.request.event)
|
||||
flow = request._checkout_flow = get_checkout_flow(self.request.event)
|
||||
previous_step = None
|
||||
for step in flow:
|
||||
if not step.is_applicable(request):
|
||||
@@ -64,4 +64,6 @@ class CheckoutView(View):
|
||||
return handler(request)
|
||||
else:
|
||||
previous_step = step
|
||||
step.c_is_before = True
|
||||
step.c_resolved_url = step.get_step_url(request)
|
||||
raise Http404()
|
||||
|
||||
Reference in New Issue
Block a user