mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add select2-subevent picker; display subevent start time
This commit is contained in:
@@ -48,15 +48,9 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.event.has_subevents %}
|
{% if request.event.has_subevents %}
|
||||||
<select name="subevent" class="form-control">
|
<div class="col-md-6">
|
||||||
<option value="">{% trans "All dates" context "subevent" %}</option>
|
{% include "pretixcontrol/event/fragment_subevent_choice_simple.html" %}
|
||||||
{% for se in request.event.subevents.all %}
|
</div>
|
||||||
<option value="{{ se.id }}"
|
|
||||||
{% if request.GET.subevent|add:0 == se.id %}selected="selected"{% endif %}>
|
|
||||||
{{ se.name }} – {{ se.get_date_range_display }}
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button class="btn btn-large btn-primary" type="submit">
|
<button class="btn btn-large btn-primary" type="submit">
|
||||||
{% trans "Send as many vouchers as possible" %}
|
{% trans "Send as many vouchers as possible" %}
|
||||||
@@ -110,15 +104,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
{% if request.event.has_subevents %}
|
{% if request.event.has_subevents %}
|
||||||
<select name="subevent" class="form-control">
|
{% include "pretixcontrol/event/fragment_subevent_choice_simple.html" %}
|
||||||
<option value="">{% trans "All dates" context "subevent" %}</option>
|
|
||||||
{% for se in request.event.subevents.all %}
|
|
||||||
<option value="{{ se.id }}"
|
|
||||||
{% if request.GET.subevent|add:0 == se.id %}selected="selected"{% endif %}>
|
|
||||||
{{ se.name }} – {{ se.get_date_range_display }}
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
|
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
|
||||||
<a href="?{% url_replace request "download" "yes" %}"
|
<a href="?{% url_replace request "download" "yes" %}"
|
||||||
@@ -166,7 +152,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
{% if request.event.has_subevents %}
|
{% if request.event.has_subevents %}
|
||||||
<td>{{ e.subevent.name }} – {{ e.subevent.get_date_range_display }}</td>
|
<td>{{ e.subevent.name }} – {{ e.subevent.get_date_range_display }} {{ e.subevent.date_from|date:"TIME_FORMAT" }}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{{ e.created|date:"SHORT_DATETIME_FORMAT" }}
|
{{ e.created|date:"SHORT_DATETIME_FORMAT" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user