Added templates for assignment list and details

parent 42e475ad
{% extends 'base.html' %}
{% load static %}
{% block title %}Assignments{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'assignments/css/list_styles.css' %}">
{% endblock %}
{% block content %}
<h1>{{ assignment.name }}</h1>
<ul>
<li><b>Course & Section:</b> {{ course.course_code }} {{ course.course_title }} {{ course.section }}</li>
<li><b>Description:</b> {{ assignment.description }}</li>
<li><b>Perfect score:</b> {{ assignment.max_points }}</li>
<li><b>Passing score:</b> {{ assignment.passing_score }}</li>
<li><img src="{% static 'assignments/css/assignment.png' %}" alt="assignment"></li>
</ul>
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block title %}Assignments{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'assignments/css/list_styles.css' %}">
{% endblock %}
{% block content %}
<header>
<h1>Assignments Per Course</h1>
</header>
<p>
<ul>
{% for course in course_list %}
<li>{{ course.course_code }} {{ course.course_title }} {{ course.section }}
<ul>
{% for assignment in assignments_list %}
{% if assignment.course_code == course %}
<li><a href="{% url 'assignments:assignment-detail' pk=assignment.pk %}">{{ assignment.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</p>
{% endblock %}
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