Commit 308c048b authored by Brescia Amandy's avatar Brescia Amandy

Edited the template for the Per Assignment Details Page

parent dd8a9867
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}{{ object.name }}{% endblock %}
{% block header %}{{ object.name }}{% endblock %}
{% block body %}
{{ object.course }} {{ object.course.title }} - {{ object.course.section }} <br/> <br/>
Description: {{ object.description }} <br/>
Perfect Score: {{ object.perfect_score}} <br/>
Passing Score: {{ object.passing_score }} <br/> <br/>
<a href="#">Edit Assignment</a>
{% endblock %}
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<ul> <ul>
{% for assignment in assignment_list %} {% for assignment in assignment_list %}
<li> <li>
<a href='#'> <a href="{{ assignment.pk }}/details">
{{ assignment.name }} {{ assignment.name }}
</a> </a>
</li> </li>
......
from typing import Any, Dict
from django.shortcuts import render from django.shortcuts import render
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView from django.views.generic.edit import CreateView, UpdateView
from .models import Assignment from .models import Assignment, Course
def assignments(request): def assignments(request):
......
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