forked from CGM_Public/pretix_original
Show link for other dates in widget checkout
This commit is contained in:
@@ -152,6 +152,7 @@ class TemplateFlowStep(TemplateResponseMixin, BaseCheckoutFlowStep):
|
||||
def get_context_data(self, **kwargs):
|
||||
kwargs.setdefault('step', self)
|
||||
kwargs.setdefault('event', self.event)
|
||||
kwargs.setdefault('has_prev', self.get_prev_applicable(self.request) is not None)
|
||||
kwargs.setdefault('prev_url', self.get_prev_url(self.request))
|
||||
kwargs.setdefault('checkout_flow', [
|
||||
step
|
||||
|
||||
@@ -37,6 +37,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
{% if not has_prev and request.event.has_subevents and request.session.iframe_session %}
|
||||
<a class="btn btn-primary btn-block btn-lg" href="{{ prev_url }}">
|
||||
<span class="fa fa-reply"></span>
|
||||
{% trans "Add tickets for a different date" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
<h2>{% trans "Checkout" %}</h2>
|
||||
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
|
||||
{% block inner %}
|
||||
|
||||
Reference in New Issue
Block a user