Create html containing new form form for add view

parent cb7d2cb2
{% extends "forum/base.html" %}
{% block content %}
<h1> New Post </h1>
<form method="POST" action="{% url 'forum:add' %}" enctype="multipart/form-data">
{% csrf_token %}
{{ post_form.as_p }}
<button class="button" type="submit">Save Post</button>
</form>
<form action="/forum/">
<button class="button" type="submit">Back to Widget Forum</button>
</form>
{% 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