Commit 231840b6 authored by Jersey Dayao's avatar Jersey Dayao 🏀
parents 5b96583f 3ab1b322
{% extends "announcements/base.html" %} {% extends "announcements/base.html" %}
{% block content %} {% block content %}
<h1>Add Assignment</h1> <h1>New Assignment</h1>
<form method="POST" enctype="multipart/form-data" action="{% url 'announcements:add' %}"> <form method="POST" enctype="multipart/form-data" action="{% url 'announcements:add' %}">
{% csrf_token %} {% csrf_token %}
{{announcement_form.media}} {{announcement_form.media}}
...@@ -10,5 +10,5 @@ ...@@ -10,5 +10,5 @@
<button class="button" type="submit">Save Announcement</button> <button class="button" type="submit">Save Announcement</button>
</form> </form>
<br> <br>
<button type="button"> <a href="/announcements/" id = "back"> Back to Main Announcements Page</a> </button> <button type="button"> <a href="/announcements/" id = "back"> Back to Main Announcements Board</a> </button>
{% endblock %} {% endblock %}
{% extends "assignments/base.html" %} {% extends "assignments/base.html" %}
{% block content %} {% block content %}
<h1>Add Assignment</h1> <h1>New Assignment</h1>
<form method="POST" enctype="multipart/form-data" action="{% url 'assignments:add' %}"> <form method="POST" enctype="multipart/form-data" action="{% url 'assignments:add' %}">
{% csrf_token %} {% csrf_token %}
{{assignment_form.media}} {{assignment_form.media}}
......
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