Skip to content

Commit

Permalink
Improved gradebook design
Browse files Browse the repository at this point in the history
  • Loading branch information
arielfayol37 committed Aug 24, 2023
1 parent 69cab76 commit 25317a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Binary file modified deimos/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified phobos/__pycache__/views.cpython-311.pyc
Binary file not shown.
23 changes: 14 additions & 9 deletions phobos/templates/phobos/gradebook.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@
{% block body%}

<h1> GradeBook</h1>
<table><tr>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<td><b>First Name</b></td>
<td><b>Last Name</b></td>
{% for assignment in assignments %}
<td> <b>{{assignment.name}}</b> </td>
{% endfor %}
</tr>
{% for student, grade_list in students_grades %}
<tr>
<td>{{ student.first_name}} </td>
<td>{{ student.last_name}} </td>
{% for grade in grade_list %}
<td> {{grade}} </td>
</thead>
<tbody>
{% for student, grade_list in students_grades %}
<tr>
<td>{{ student.first_name}} </td>
<td>{{ student.last_name}} </td>
{% for grade in grade_list %}
<td> {{grade}} </td>
{% endfor %}
</tr>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>


Expand Down
1 change: 0 additions & 1 deletion phobos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,3 @@ def gradebook(request, course_id):
return render(request,'phobos/gradebook.html',\
{'students_grades': zip(enrolled_students,student_grades),\
'assignments':assignments})

0 comments on commit 25317a8

Please sign in to comment.