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

@ -0,0 +1,12 @@
<h1> {{ object }} </h1>
<h2> This resource belong to {{ object.course }}</h2>
<h3> {{ object.description }}</h3>
<div>
{% if object.files != None %}
<div> <a href="{{ object.files.url}}" target="_blank"> See files </a> </div>
{% endif %}
<div> <a href="/courses/{{ object.course.pk }}-{{ object.course.slug }}/resource/{{ object.pk }}/edit"> Edit
Resource </a> </div>
</div>