mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Notification view: use select2 event selection
This commit is contained in:
@@ -32,16 +32,16 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{% trans "Choose event" %}</legend>
|
<legend>{% trans "Choose event" %}</legend>
|
||||||
<p>
|
<p>
|
||||||
<select name="event" class="form-control">
|
<select name="event" class="form-control simple-subevent-choice"
|
||||||
<option value="">{% trans "All my events" %}</option>
|
data-model-select2="event"
|
||||||
{% for e in events %}
|
data-placeholder="{% trans "All my events" %}"
|
||||||
<option value="{{ e.pk }}"
|
data-select2-url="{% url "control:events.typeahead" %}">
|
||||||
{% if e.pk|floatformat:0 == request.GET.event %}selected="selected"{% endif %}>
|
{% if event %}
|
||||||
{{ e.name }} – {{ e.get_date_range_display }}
|
<option value="{{ event.pk }}" selected>
|
||||||
|
{{ event.name }}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
<button class="btn btn-primary" type="submit">{% trans "Choose" %}</button>
|
|
||||||
<span class="help-block">{% trans "Save your modifications before switching events." %}</span>
|
<span class="help-block">{% trans "Save your modifications before switching events." %}</span>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
Reference in New Issue
Block a user