File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed
templates/classroom/students Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 66 < div class ="progress mb-3 ">
77 < div class ="progress-bar " role ="progressbar " aria-valuenow ="{{ progress }} " aria-valuemin ="0 " aria-valuemax ="100 " style ="width: {{ progress }}% "> </ div >
88 </ div >
9+ < h2 > < span class ="badge badge-secondary "> {{ answered_questions|add:"1" }}/{{total_questions}}</ span > </ h2 >
10+
911 < h2 class ="mb-3 "> {{ quiz.name }}</ h2 >
1012 < p class ="lead "> {{ question.text }}</ p >
1113 < form method ="post " novalidate >
Original file line number Diff line number Diff line change @@ -132,5 +132,7 @@ def take_quiz(request, pk):
132132 'quiz' : quiz ,
133133 'question' : question ,
134134 'form' : form ,
135- 'progress' : progress
135+ 'progress' : progress ,
136+ 'answered_questions' : total_questions - total_unanswered_questions ,
137+ 'total_questions' : total_questions
136138 })
Original file line number Diff line number Diff line change 1- <!doctype html>
1+ {% load static %} <!doctype html>
22< html lang ="en ">
33< head >
44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
66 < title > Django School</ title >
7- < link href ="https://fonts.googleapis.com/css?family=Clicker+Script " rel ="stylesheet ">
8- < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/ css/bootstrap.min.css" integrity =" sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy " crossorigin =" anonymous ">
9- < link rel ="stylesheet " type ="text/css " href ="/ static/ vendor/fontello-2f186091/css/fontello.css ">
10- < link rel ="stylesheet " type ="text/css " href ="/ static/ css/app.css ">
11- < link rel ="stylesheet " type ="text/css " href ="/ static/ css/students.css" >
7+ <!-- < link href="https://fonts.googleapis.com/css?family=Clicker+Script" rel="stylesheet"> -- >
8+ < link rel ="stylesheet " href ="{% static ' css/bootstrap.min.css' %} ">
9+ < link rel ="stylesheet " type ="text/css " href ="{% static ' vendor/fontello-2f186091/css/fontello.css' %} ">
10+ < link rel ="stylesheet " type ="text/css " href ="{% static ' css/app.css' %} ">
11+ < link rel ="stylesheet " type ="text/css " href ="{% static ' css/students.css' %} " >
1212</ head >
1313< body >
1414 < div class ="container " style ="margin-top: 8rem ">
Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
66 < title > Django School</ title >
7- < link href ="https://fonts.googleapis.com/css?family=Clicker+Script " rel ="stylesheet ">
8- < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/ css/bootstrap.min.css" integrity =" sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy " crossorigin =" anonymous ">
9- < link rel ="stylesheet " type ="text/css " href ="/ static/ vendor/fontello-2f186091/css/fontello.css ">
10- < link rel ="stylesheet " type ="text/css " href ="/ static/ css/app.css ">
11- < link rel ="stylesheet " type ="text/css " href ="/ static/ css/students.css" >
7+ <!-- < link href="https://fonts.googleapis.com/css?family=Clicker+Script" rel="stylesheet"> -- >
8+ < link rel ="stylesheet " href ="{% static ' css/bootstrap.min.css' %} ">
9+ < link rel ="stylesheet " type ="text/css " href ="{% static ' vendor/fontello-2f186091/css/fontello.css' %} ">
10+ < link rel ="stylesheet " type ="text/css " href ="{% static ' css/app.css' %} ">
11+ < link rel ="stylesheet " type ="text/css " href ="{% static ' css/students.css' %} " >
1212</ head >
1313< body >
1414 < div class ="container " style ="margin-top: 8rem ">
Original file line number Diff line number Diff line change 11Django == 2.2.3
2- django-crispy-forms == 1.7.2
2+ django-crispy-forms == 1.7.0
You can’t perform that action at this time.
0 commit comments