Display event selection within iframes

This commit is contained in:
Raphael Michel
2017-12-22 13:38:48 +01:00
parent 8c0fb90420
commit 954b7f6d9e
5 changed files with 32 additions and 15 deletions

View File

@@ -1,9 +1,16 @@
{% load i18n %}
{% load eventurl %}
<form class="form-inline" method="get" id="monthselform" action="{% eventurl event "presale:event.index" %}">
{% load urlreplace %}
<form class="form-inline" method="get" id="monthselform" action="{% eventurl event "presale:event.index" cart_namespace=cart_namespace %}">
{% for f, v in request.GET.items %}
{% if f != "month" and f != "year" %}
<input type="hidden" name="{{ f }}" value="{{ v }}">
{% endif %}
{% endfor %}
<div class="row">
<div class="col-sm-4 hidden-xs">
<a href="{% eventurl event "presale:event.index" %}?year={{ before.year }}&month={{ before.month }}" class="btn btn-default">
<a href="?{% url_replace request "year" before.year "month" before.month %}"
class="btn btn-default">
<span class="fa fa-arrow-left"></span>
{{ before|date:"F Y" }}
</a>
@@ -24,7 +31,7 @@
</button>
</div>
<div class="col-sm-4 hidden-xs text-right">
<a href="{% eventurl event "presale:event.index" %}?year={{ after.year }}&month={{ after.month }}" class="btn btn-default">
<a href="?{% url_replace request "year" after.year "month" after.month %}" class="btn btn-default">
<span class="fa fa-arrow-right"></span>
{{ after|date:"F Y" }}
</a>

View File

@@ -1,7 +1,8 @@
{% load i18n %}
{% load eventurl %}
{% for subev in event.active_future_subevents %}
<a href="{% eventurl event "presale:event.index" subevent=subev.id %}" class="subevent-row">
<a href="{% eventurl event "presale:event.index" subevent=subev.id cart_namespace=cart_namespace %}"
class="subevent-row">
<div class="row">
<div class="col-md-6">
<strong>{{ subev.name }}</strong>

View File

@@ -81,7 +81,7 @@
</div>
{% endif %}
{% if event.has_subevents and not cart_namespace %}
{% if show_dates %}
{% if subevent %}
<a class="subevent-toggle">
{% trans "View other date" %}
@@ -90,7 +90,7 @@
<h3>{% trans "Choose date to buy a ticket" %}</h3>
{% endif %}
<div class="subevent-list">
{% if event.settings.event_list_type == "calendar" %}
{% if list_type == "calendar" %}
{% include "pretixpresale/event/fragment_subevent_calendar.html" %}
{% else %}
{% include "pretixpresale/event/fragment_subevent_list.html" %}