mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
Review notes
This commit is contained in:
@@ -1619,6 +1619,9 @@ class QuotaFilterForm(FilterForm):
|
|||||||
if fdata.get('weekday'):
|
if fdata.get('weekday'):
|
||||||
qs = qs.annotate(wday=ExtractWeekDay('subevent__date_from')).filter(wday__in=fdata.get('weekday'))
|
qs = qs.annotate(wday=ExtractWeekDay('subevent__date_from')).filter(wday__in=fdata.get('weekday'))
|
||||||
|
|
||||||
|
if fdata.get('subevent'):
|
||||||
|
qs = qs.filter(subevent=fdata["subevent"])
|
||||||
|
|
||||||
if fdata.get('query'):
|
if fdata.get('query'):
|
||||||
query = fdata.get('query')
|
query = fdata.get('query')
|
||||||
qs = qs.filter(name__icontains=query)
|
qs = qs.filter(name__icontains=query)
|
||||||
|
|||||||
@@ -7,7 +7,11 @@
|
|||||||
<form action="" method="post" class="form-horizontal">
|
<form action="" method="post" class="form-horizontal">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if allowed %}
|
{% if allowed %}
|
||||||
<p>{% blocktrans %}Are you sure you want to delete the following quotas?{% endblocktrans %}</p>
|
<p>{% blocktrans trimmed count num=allowed|length %}
|
||||||
|
Are you sure you want to delete the following quota?
|
||||||
|
{% plural %}
|
||||||
|
Are you sure you want to delete the following {{ num }} quotas?
|
||||||
|
{% endblocktrans %}</p>
|
||||||
<ul>
|
<ul>
|
||||||
{% for q in allowed %}
|
{% for q in allowed %}
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -17,13 +17,9 @@
|
|||||||
{% if quotas|length == 0 and not filter_form.filtered %}
|
{% if quotas|length == 0 and not filter_form.filtered %}
|
||||||
<div class="empty-collection">
|
<div class="empty-collection">
|
||||||
<p>
|
<p>
|
||||||
{% if request.GET.subevent %}
|
{% blocktrans trimmed %}
|
||||||
{% trans "Your search did not match any quotas." %}
|
You haven't created any quotas yet.
|
||||||
{% else %}
|
{% endblocktrans %}
|
||||||
{% blocktrans trimmed %}
|
|
||||||
You haven't created any quotas yet.
|
|
||||||
{% endblocktrans %}
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if 'event.items:write' in request.eventpermset %}
|
{% if 'event.items:write' in request.eventpermset %}
|
||||||
|
|||||||
Reference in New Issue
Block a user