Fix incorrect pre-selection of month select box

This commit is contained in:
Raphael Michel
2021-06-15 12:25:53 +02:00
parent 72388abd57
commit 8f05de7004

View File

@@ -18,7 +18,7 @@
<div class="col-sm-4 col-xs-12 text-center">
<select name="month" class="form-control">
{% for m in subevent_list.months %}
<option value="{{ m|date:"m" }}" {% if m == subevent_list.date.month %}selected{% endif %}>{{ m|date:"F" }}</option>
<option value="{{ m|date:"m" }}" {% if m == subevent_list.date %}selected{% endif %}>{{ m|date:"F" }}</option>
{% endfor %}
</select>
<select name="year" class="form-control">