Commit 9bbbed5b authored by Brescia Amandy's avatar Brescia Amandy

Fixed buttons to Add and Edit assignments

parent 38f4d8e5
......@@ -11,5 +11,7 @@
Perfect Score: {{ object.perfect_score}} <br/>
Passing Score: {{ object.passing_score }} <br/> <br/>
<button>
<a href="edit">Edit Assignment</a>
</button>
{% endblock %}
\ No newline at end of file
......@@ -15,7 +15,10 @@
{% endfor %}
</ul>
<a href="add">New Assignment</a> <br/>
<button>
<a href="add">New Assignment</a>
</button>
<br/>
<a href="/dashboard">Dashboard</a> <br/>
<a href="/forum/">Forum</a>
......
......@@ -3,6 +3,7 @@ from django.urls import path
from .views import assignments
from .views import AssignmentDetails, AssignmentAdd, AssignmentEdit
urlpatterns = [
path('', assignments, name='assignments'),
path('<pk>/details', AssignmentDetails.as_view(), name='assignment-details'),
......
from typing import Any, Dict
from django.shortcuts import render
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView
from .models import Assignment, Course
......
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