Commit b804aa8b authored by Ciella Francisco's avatar Ciella Francisco 😵

Edited event-form.html to enable image uploads for forms

parent adf29c2d
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% load static %} {% load static %}
{% block title %}Widget's Forum{% endblock %} {% block title %}Widget's Forum{% endblock %}
{% block content %} {% block content %}
{ form.non_field_errors } {{ form.non_field_errors }}
{% for field in form %} {% for field in form %}
{% if field.errors %} {% if field.errors %}
<p>{{ field.label }} has the following errors:</p> <p>{{ field.label }} has the following errors:</p>
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
</ul> </ul>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<form action="/add" method="post"> <form enctype="multipart/form-data" method="post">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
<input type="submit" value="Save"/>
</form> </form>
{% 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