Edited the HTML templates for Assignments to use CSS

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