add CourseDetail, CourseStudentResults
This commit is contained in:
parent
b629459b46
commit
1797b9fe06
10 changed files with 205 additions and 17 deletions
15
templates/course/course.html
Normal file
15
templates/course/course.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
{% for course in object_list %}
|
||||
<h1> {{ course.contest }} - {{ course.contest.start_time }} - {{ course.contest.end_time }} </h1>
|
||||
{% endfor %}
|
||||
<a href="{{ url('grades',slug) }}">View grades</a>
|
||||
</body>
|
||||
</html>
|
53
templates/course/grades.html
Normal file
53
templates/course/grades.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
table {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table th {
|
||||
border: 1px solid black;
|
||||
padding: 5px;
|
||||
}
|
||||
table td {
|
||||
border: 1px solid black;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Grades</h1>
|
||||
<!-- {% for something in object_list %}
|
||||
<h2> {{ something }} </h2>
|
||||
{% endfor %} -->
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
{% for contest in contests %}
|
||||
<th>{{ contest }}(%)</th>
|
||||
{% endfor %}
|
||||
<th>Progress</th>
|
||||
</tr>
|
||||
{% for student in object_list %}
|
||||
<tr>
|
||||
{% for data in student %}
|
||||
<td>{{ data }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -9,11 +9,11 @@
|
|||
<body>
|
||||
<h1>Enrolling</h1>
|
||||
{% for course in enrolling %}
|
||||
<h2> {{ course }} </h2>
|
||||
<h2><a href="{{ url('course_detail',course.name) }}"> {{ course }} </a></h2>
|
||||
{% endfor %}
|
||||
<h1> Available </h1>
|
||||
{% for course in available %}
|
||||
<h2> {{ course }} </h2>
|
||||
<h2><a href="{{ url('course_detail',course.name) }}"> {{ course }} </a></h2>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue