Allow subevent filtering in dashboard

This commit is contained in:
Raphael Michel
2017-08-24 16:12:50 +02:00
parent ff21380099
commit cd6b1a2327
4 changed files with 42 additions and 16 deletions

View File

@@ -9,5 +9,5 @@
</option>
{% endfor %}
</select>
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
<button class="btn btn-primary" type="submit">{% trans "Show" %}</button>
</p>

View File

@@ -39,7 +39,12 @@
</div>
{% endif %}
<div class="row dashboard">
{% if request.event.has_subevents %}
<form class="form-inline helper-display-inline" action="" method="get">
{% include "pretixcontrol/event/fragment_subevent_choice_simple.html" %}
</form>
{% endif %}
<div class="dashboard">
{% for w in widgets %}
<div class="widget-container widget-{{ w.display_size|default:"small" }}">
{% if w.url %}{# backwards compatibility #}