Forms layout have been fixed and hyperlinks added

parent f037cb32
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h1>Add a New Assignment</h1> <h1>Add a New Assignment</h1>
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form.as_p }}
<input type="submit" value="Save New Assignment"> <input type="submit" value="Save New Assignment">
</form> </form>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -11,5 +11,7 @@ ...@@ -11,5 +11,7 @@
<li>Perfect Score: {{ object.perfect_score }}</li> <li>Perfect Score: {{ object.perfect_score }}</li>
<li>Passing Score: {{ object.passing_score }}</li> <li>Passing Score: {{ object.passing_score }}</li>
</ul> </ul>
<button>Edit Assignment</button> <button onclick="window.location.href='../../../Assignments/{{object.id}}/edit/';">
Edit Assignment
</button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h1>Edit Assignment</h1> <h1>Edit Assignment</h1>
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form.as_p }}
<input type="submit" value="Save Changes to Assignment"> <input type="submit" value="Save Changes to Assignment">
</form> </form>
{% endblock %} {% endblock %}
\ No newline at end of file
No preview for this file type
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