Commit 49ca8f22 authored by Jonathan Talbot's avatar Jonathan Talbot

some fixes

parent f2e155f6
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
<title>Announcements List</title> <title>Announcements List</title>
</head> </head>
<body> <body>
<h1>Important Announcements:</h1> <h1>Announcement Board</h1>
<hr> <hr>
<h3>Important Announcements:</h3>
{% if announcements %} {% if announcements %}
<ul> <ul>
{% for announcement in announcements %} {% for announcement in announcements %}
......
...@@ -9,20 +9,25 @@ ...@@ -9,20 +9,25 @@
<body> <body>
<h1>Assignments Per Course</h1> <h1>Assignments Per Course</h1>
<hr> <hr>
{% for course in courses %} <h3>List of Courses:</h3>
<ul> {% if courses %}
<li>{{ course.course_code }} {{ course.course_title }} {{ course.section }} {% for course in courses %}
<ul> <ul>
{% for assignment in assignments %} <li>{{ course.course_code }} {{ course.course_title }} {{ course.section }}
{%if assignment.course == course%} <ul>
<li><a href="{{assignment.get_absolute_url}}">{{assignment.name}}</a></li> {% for assignment in assignments %}
{%endif%} {%if assignment.course == course%}
{% endfor %} <li><a href="{{assignment.get_absolute_url}}">{{assignment.name}}</a></li>
</ul> {%endif%}
</li> {% endfor %}
</ul> </ul>
</li>
{% endfor %} </ul>
{% endfor %}
{% else %}
<p>There are no assignments.</p>
{% endif %}
<hr> <hr>
<a href="{% url 'assignment-add' %}"><button>Add Assignment</button></a> <a href="{% url 'assignment-add' %}"><button>Add Assignment</button></a>
......
No preview for this file type
{% block content %} {% block content %}
{% block title %}Welcome to Widget’s Forum!{% endblock %} {% block title %}<h1>Welcome to Widget’s Forum!</h1>{% endblock %}
<p>Forum posts:</p> <hr>
<h3>Forum posts:</h3>
{% if post_list %} {% if post_list %}
<ul> <ul>
{% for post in post_list %} {% for post in post_list %}
...@@ -12,5 +13,6 @@ ...@@ -12,5 +13,6 @@
{% else %} {% else %}
<p>There are no posts.</p> <p>There are no posts.</p>
{% endif %} {% endif %}
<hr>
<p><a href="{% url 'Add' %}">New Forum Post</a></p> <p><a href="{% url 'Add' %}">New Forum Post</a></p>
{% 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