This commit is contained in:
Ross
2024-10-10 22:04:07 +01:00
parent 57d3ea909a
commit ffac3175e1
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -4,13 +4,13 @@
{% block content %}
<h2>Entries</h2>
Count: {{ entries|length }}
Count: <span id="count">{{ entries|length }}</span>
<button
_="on click hide <li.inactive-True/> then show <li.inactive-False/>"
_="on click hide <li.inactive-True/> then show <li.inactive-False/> then set #count.innerHTML to length of <li.inactive-False/>"
>Hide inactive</button>
<button
_="on click hide <li.inactive-False/> then show <li.inactive-True/>"
_="on click hide <li.inactive-False/> then show <li.inactive-True/> then set #count.innerHTML to length of <li.inactive-True/>"
>Hide active</button>
<ul>
+1 -1
View File
@@ -92,7 +92,7 @@ def replace_questions(request):
return render(request, "oef/replace_questions.html", {})
def entries(request):
entries = Entry.objects.all()
entries = Entry.objects.all().order_by("exam_code")
return render(request, "oef/entries.html", {"entries": entries})