Edited the HTML templates for Assignments to use CSS

parent 97ce07ae
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block content %}
<title>Add Assignment</title>
{% block title %} Add Assignment {% endblock %}
<h1>Add a new assignment:</h1>
{% block header %} Add a new assignment: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save New Assignment">
</form>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block content %}
<title>{{ assignment.name }}</title>
{% block title %} {{ assignment.name }} {% endblock %}
<h1>{{ assignment.name }}</h1>
{% block header %} {{ assignment.name }} {% endblock %}
{% block content %}
<p>
{{ assignment.course.code }} {{ assignment.course.title }}-{{ assignment.course.section }} <br><br>
Description: {{ assignment.description }} <br>
......@@ -12,6 +12,6 @@
Passing Score: {{ assignment.passing_score }} <br>
</p>
<li>
<a href="{{ assignment.get_update_url }}">Edit Assignment</a>
<a href="{{ assignment.get_update_url }}" class="item">Edit Assignment</a>
</li>
{% endblock %}
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block content %}
<title>Edit Assignment</title>
{% block title %} Edit Assignment {% endblock %}
<h1>Edit Assignment.</h1>
{% block header %} Edit Assignment: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Assignment">
</form>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<title>Widget's Assignments</title>
<h1>Welcome to Widget's Assignments!</h1>
{% extends 'base.html' %}
{% for assignment in assignments %}
<a href="{{ assignment.pk }}/details/">{{ assignment.name }}</a><br>
{% endfor %}
{% block title %} Widget's Assignments {% endblock %}
<br>
{% block header %} Welcome to Widget's Assignments! {% endblock %}
<a href="add/"><button value="click here">New Assignment</button></a><br><br>
{% block content %}
<div id = "object_container">
<ul id = "object_list">
{% for assignment in assignments %}
<a href="{{ assignment.pk }}/details/" class="item">{{ assignment.name }}</a><br>
{% endfor %}
<br>
<li>
<a href="add/" class="item">New Assignment</a>
</li>
</ul>
</div>
{% endblock %}
<a href="/Dashboard/">Dashboard</a><br>
<a href="/announcements/">Announcements</a><br>
<a href="/forum/">Forum</a><br>
<a href="/widget_Calendar/">Calendar</a><br>
{% endblock content %}
{% block navbar %}
<div id = "navbar">
<a href = "/dashboard/">Dashboard</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/announcements/">Announcements</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/widget_Calendar/">Calendar</a>
</div>
{% 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