Commit 28365e64 authored by Stephanie Tullao's avatar Stephanie Tullao

Created html file for post form page

parent 085ec69e
{% extends 'base.html' %}
{% load static %}
{% block title %}Create Post{% endblock %}
{% block styles %} <link rel="stylesheet" href="{% static 'forum/css/forum_create_styles.css' %}"> {% endblock %}
{% block content %}
<body>
<header>New Forum Post</header>
<br>
<form method="POST" action="">
{% csrf_token %}
<label for="{{ form.post_title.auto_id }}">Title</label>
<br>
{{ form.post_title }}
<br>
<label for="{{ form.post_body.auto_id }}">Body</label>
<br>
{{ form.post_body }}
<br>
<label for="{{ form.author.auto_id }}">Author</label>
<br>
{{ form.author }}
<br><br>
<input type="submit" value="Save Post" id="submit_button" href="{% url 'forum:post-list' %}">
<br>
</form>
<br>
<p><a href="{% url 'forum:post-list' %}">Back to main forum</a></p>
</body>
{% 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