@@ -127,34 +127,38 @@ <h1 class="text-center">Contest Statistics</h1>
127
127
<!-- LFG Stats Card deck end -->
128
128
129
129
<!-- Course Summary card -->
130
- < div class ="card mt-4 mb-3 border-secondary ">
131
- < div class ="card-header font-weight-bold bg-secondary text-white ">
130
+ < div id ="accordionCourse ">
131
+ < div class ="card mt-4 mb-3 border-secondary ">
132
+ < div class ="card-header font-weight-bold bg-secondary text-white " data-toggle ="collapse " data-target ="#collapseCourse " aria-expanded ="true " aria-controls ="collapseCourse " style ="cursor: pointer; ">
132
133
< i class ="fa-solid fa-list-ul fa-fw "> </ i > Courses
133
- </ div >
134
- < div class ="card-body overflow-auto ">
135
- < div class ="row justify-content-center ">
136
- < div class ="col-12 ">
137
- < div class ="table-responsive ">
138
- < table class ="table table-sm ">
139
- < thead class ="thead-light ">
140
- < tr >
141
- < th scope ="col "> Code</ th >
142
- < th scope ="col "> Name</ th >
143
- < th scope ="col "> Instructor</ th >
144
- < th scope ="col " class ="text-center "> Students</ th >
145
- </ tr >
146
- </ thead >
147
- < tbody >
148
- {% for course in courses %}
149
- < tr >
150
- < td > {{ course.code }}</ td >
151
- < td > {{ course.name }}</ td >
152
- < td > {{ course.instructor.last_name }}</ td >
153
- < td class ="text-center "> {{ course.num_registered }}</ td >
154
- </ tr >
155
- {% endfor %}
156
- </ tbody >
157
- </ table >
134
+ </ div >
135
+ < div id ="collapseCourse " class ="collapse show " data-parent ="#accordionCourse ">
136
+ < div class ="card-body overflow-auto ">
137
+ < div class ="row justify-content-center ">
138
+ < div class ="col-12 ">
139
+ < div class ="table-responsive ">
140
+ < table class ="table table-sm ">
141
+ < thead class ="thead-light ">
142
+ < tr >
143
+ < th scope ="col "> Code</ th >
144
+ < th scope ="col "> Name</ th >
145
+ < th scope ="col "> Instructor</ th >
146
+ < th scope ="col " class ="text-center "> Students</ th >
147
+ </ tr >
148
+ </ thead >
149
+ < tbody >
150
+ {% for course in courses %}
151
+ < tr >
152
+ < td > {{ course.code }}</ td >
153
+ < td > {{ course.name }}</ td >
154
+ < td > {{ course.instructor.last_name }}</ td >
155
+ < td class ="text-center "> {{ course.num_registered }}</ td >
156
+ </ tr >
157
+ {% endfor %}
158
+ </ tbody >
159
+ </ table >
160
+ </ div >
161
+ </ div >
158
162
</ div >
159
163
</ div >
160
164
</ div >
0 commit comments