Commit d158e881 authored by karin-kurusu's avatar karin-kurusu

Created forum.html template

parent 233dc113
...@@ -4,3 +4,20 @@ ...@@ -4,3 +4,20 @@
{% block content %} {% block content %}
<h2>Welcome to Widget's Forum!</h2> <h2>Welcome to Widget's Forum!</h2>
<h3>Forum posts:</h3> <h3>Forum posts:</h3>
{% for forumpost in forumposts %}
<a href="{{ forumpost.get_absolute_url }}">{{ forumpost.author.last_name }}, {{ forumpost.author.first_name }}</a><br>
{% endfor %}
<br>
<form action={% url 'forum:forumpost-add' %}>
<input type="submit" value="New Post"/>
</form>
<a href="{% url 'dashboard:pageview' %}">Dashboard</a><br>
<a href="{% url 'announcements:pageview' %}">Announcements</a><br>
<a href="{% url 'assignments:pageview' %}">Assignments</a><br>
<a href="{% url 'widget_calendar:pageview' %}">Calendar</a><br>
{% 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