Skip to content

Commit 387285c

Browse files
committed
moved student_subjects to quiz list
1 parent 96f9e3e commit 387285c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

django_school/classroom/templates/classroom/students/_header.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<h2>Quizzes</h2>
2-
<p class="text-muted">
3-
Subjects:{% for subject in user.student.interests.all %} {{ subject.get_html_badge }}{% endfor %}
4-
<a href="{% url 'students:student_interests' %}"><small>(update interests)</small></a>
5-
</p>
2+
63

74
<ul class="nav nav-tabs mb-3">
85
<li class="nav-item">

django_school/classroom/templates/classroom/students/quiz_list.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
{% block content %}
99
{% include 'classroom/students/_header.html' with active='new' %}
10-
10+
<p class="text-muted">
11+
Subjects:{% for subject in user.student.interests.all %} {{ subject.get_html_badge }}{% endfor %}
12+
<a href="{% url 'students:student_interests' %}"><small>(update interests)</small></a>
13+
</p>
14+
1115
<table class="table table-bordered mb-0" id="tb_quizlist" >
1216
<thead>
1317
<tr>
@@ -42,7 +46,7 @@
4246
<script src="{% static 'datatables/dataTables.bootstrap4.min.js' %}"></script>
4347
<script type="text/javascript">
4448
$(document).ready(function() {
45-
$('#tb_quizlist').DataTable();
49+
$('#tb_quizlist').DataTable({"order": [[ 2, "desc" ]]});
4650
});
4751
</script>
4852
{% endblock %}

0 commit comments

Comments
 (0)