@@ -117,6 +117,82 @@ <h3>Learning in Public Control</h3>
117117 </ div >
118118 </ div >
119119
120+ < div class ="card my-4 ">
121+ < div class ="card-header ">
122+ < h3 > Homework Submissions</ h3 >
123+ </ div >
124+ < div class ="card-body ">
125+ {% if homework_submissions %}
126+ < div class ="table-responsive ">
127+ < table class ="table table-striped table-hover ">
128+ < thead >
129+ < tr >
130+ < th > Homework</ th >
131+ < th > Submitted</ th >
132+ < th > Score</ th >
133+ < th > Actions</ th >
134+ </ tr >
135+ </ thead >
136+ < tbody >
137+ {% for submission in homework_submissions %}
138+ < tr >
139+ < td > {{ submission.homework.title }}</ td >
140+ < td > {{ submission.submitted_at|date:"Y-m-d H:i" }}</ td >
141+ < td > {{ submission.total_score }}</ td >
142+ < td >
143+ < a href ="{% url 'cadmin_homework_submission_edit' course.slug submission.homework.slug submission.id %} " class ="btn btn-sm btn-primary ">
144+ < i class ="fas fa-edit "> </ i > Edit
145+ </ a >
146+ </ td >
147+ </ tr >
148+ {% endfor %}
149+ </ tbody >
150+ </ table >
151+ </ div >
152+ {% else %}
153+ < p class ="text-muted "> No homework submissions yet.</ p >
154+ {% endif %}
155+ </ div >
156+ </ div >
157+
158+ < div class ="card my-4 ">
159+ < div class ="card-header ">
160+ < h3 > Project Submissions</ h3 >
161+ </ div >
162+ < div class ="card-body ">
163+ {% if project_submissions %}
164+ < div class ="table-responsive ">
165+ < table class ="table table-striped table-hover ">
166+ < thead >
167+ < tr >
168+ < th > Project</ th >
169+ < th > Submitted</ th >
170+ < th > Score</ th >
171+ < th > Actions</ th >
172+ </ tr >
173+ </ thead >
174+ < tbody >
175+ {% for submission in project_submissions %}
176+ < tr >
177+ < td > {{ submission.project.title }}</ td >
178+ < td > {{ submission.submitted_at|date:"Y-m-d H:i" }}</ td >
179+ < td > {{ submission.total_score }}</ td >
180+ < td >
181+ < a href ="{% url 'cadmin_project_submission_edit' course.slug submission.project.slug submission.id %} " class ="btn btn-sm btn-primary ">
182+ < i class ="fas fa-edit "> </ i > Edit
183+ </ a >
184+ </ td >
185+ </ tr >
186+ {% endfor %}
187+ </ tbody >
188+ </ table >
189+ </ div >
190+ {% else %}
191+ < p class ="text-muted "> No project submissions yet.</ p >
192+ {% endif %}
193+ </ div >
194+ </ div >
195+
120196 < div class ="my-4 ">
121197 < a href ="{% url 'leaderboard_score_breakdown' course_slug=course.slug enrollment_id=enrollment.id %} " class ="btn btn-secondary "> View Score Breakdown</ a >
122198 < a href ="{% url 'leaderboard' course.slug %} " class ="btn btn-secondary "> View Leaderboard</ a >
0 commit comments