small fix to filtermenu

This commit is contained in:
crunk 2022-03-06 23:27:00 +01:00
parent 532c9c15fd
commit 00cd4df7d7

View File

@ -4,7 +4,7 @@
<button id="Academicyear" class="dropbtn">Academic year</button> <button id="Academicyear" class="dropbtn">Academic year</button>
<div class="dropdown-content"> <div class="dropdown-content">
{% for year in years %} {% for year in years %}
<button type="button" name="button" onclick="filterSelection('{{ year[1] }}', 'Academicyear')" >{{ year[1] }}</button> <button type="button" name="button" onclick="filterSelection('{{ year[0] }}', 'Academicyear')" >{{ year[1] }}</button>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
@ -12,7 +12,7 @@
<button id="Term" class="dropbtn">Term</button> <button id="Term" class="dropbtn">Term</button>
<div class="dropdown-content"> <div class="dropdown-content">
{% for term in terms %} {% for term in terms %}
<button type="button" name="button" onclick="filterSelection('{{ term[1] }}', 'Term')" >{{ term[1] }}</button> <button type="button" name="button" onclick="filterSelection('{{ term[0] }}', 'Term')" >{{ term[1] }}</button>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
@ -20,7 +20,7 @@
<button id="Course" class="dropbtn">Course</button> <button id="Course" class="dropbtn">Course</button>
<div class="dropdown-content"> <div class="dropdown-content">
{% for course in courses %} {% for course in courses %}
<button type="button" name="button" onclick="filterSelection('{{ course[1] }}', 'Course')" >{{ course[1] }}</button> <button type="button" name="button" onclick="filterSelection('{{ course[0] }}', 'Course')" >{{ course[1] }}</button>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>