Commit ebcc9ec4 authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Edited assignments html

parent 6d9dd3ea
...@@ -13,12 +13,16 @@ ...@@ -13,12 +13,16 @@
<div id = "courses"> <div id = "courses">
<ul> <ul>
<div class = "wrapper"> <div class = "wrapper">
{% for a in assignments %} {% for c in course%}
<div class = "block"> <div class = "block">
<h2> {{a.course}} </h2> <h2> {{ c }}</h2>
{% for a in assignments %}
{% if c == a.course%}
<li> <li>
<a href="/assignment/{{ a.pk }}/details"> {{a.name}} </a> <a href="/assignment/{{ a.pk }}/details"> {{a.name}} </a>
</li> </li>
{%endif%}
{%endfor%}
</div> </div>
{%endfor%} {%endfor%}
</div> </div>
......
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
<div id = "courses"> <div id = "courses">
<h1> List of courses: </h1> <h1> List of courses: </h1>
</div> </div>
{% include "Assignments/assignment_list.html" with assignments=assignment %} {% include "Assignments/assignment_list.html" with assignments=assignment course=course %}
{%endblock content%} {%endblock content%}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment