add resource course views

This commit is contained in:
zhaospei 2023-03-01 20:40:49 +07:00
parent cf31735e80
commit bc2c64f3b8
11 changed files with 358 additions and 30 deletions

View file

@ -1,19 +1,30 @@
<!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>
<h1>Enrolling</h1>
{% for course in enrolling %}
<h2> {{ course }} </h2>
{% endfor %}
<ul>
{% for course in enrolling %}
<li>
<a href="/courses/{{ course.pk }}-{{ course.slug }}"> {{ course }} </a>
</li>
{% endfor %}
</ul>
<h1> Available </h1>
{% for course in available %}
<h2> {{ course }} </h2>
{% endfor %}
<ul>
{% for course in available %}
<li>
<a href="/courses/{{ course.pk }}-{{ course.slug }}"> {{ course }} </a>
</li>
{% endfor %}
</ul>
</body>
</html>