Commit 6fe20255 authored by Albert Gagalac's avatar Albert Gagalac

added links to other pages in assignments.html

parent 42c76236
...@@ -14,7 +14,7 @@ class Course(models.Model): ...@@ -14,7 +14,7 @@ class Course(models.Model):
message='Only letters are allowed')]) message='Only letters are allowed')])
def __str__(self): def __str__(self):
return "%s %s-%s" % (self.code, self.title, self.section) return "%s %s - %s" % (self.code, self.title, self.section)
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
{% for data in assignment %} {% for data in assignment %}
<p> <a href="{{ data.get_absolute_url }}">{{ data }}</a></p> <p> <a href="{{ data.get_absolute_url }}">{{ data }}</a></p>
{% endfor %} {% endfor %}
<br>
<form action={% url 'assignments:assignment-add' %}>
<input type="submit" value="New Assignment">
</form>
<a href="{% url 'dashboard:pageview' %}">Dashboard</a><br>
<a href="{% url 'announcements:pageview' %}">Announcements</a><br>
<a href="{% url 'forum:pageview' %}">Forum</a><br>
<a href="{% url 'widget_calendar:pageview' %}">Calendar</a><br>
{% endblock %} {% endblock %}
\ 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