{% extends 'base.html' %}

{% block content %}
<h1>Delete Post</h1>
<form method="POST" action="{% url 'core:post-delete' post.topic.pk post.pk %}">
    {% csrf_token %}
    <p>Are you sure you want to delete "{{ post }}"?</p>
    {{ form.as_p }}
    <p>
        <input type="submit" value="Delete"> or <a href="{% url 'core:post-detail' post.topic.pk post.pk %}">cancel</a>
    </p>
</form>
{% endblock %}
