{% extends 'base.html' %}
{% load static %}

{% block content %}
<article class="post">
    <h1>Update Post</h1>
    <form method="POST" action="{% url 'core:post-update' post.topic.pk post.pk %}">
        {% csrf_token %}
        {{ form.as_p }}
        <p>
            <input type="submit" value="Save changes"> or <a href="{% url 'core:post-detail' post.topic.pk post.pk %}">cancel</a>
        </p>
    </form>
</article>

{% endblock %}
