{% extends 'base.html' %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <menu>
        <li><strong><a href="{% url 'core:topic-list' %}">Topics</a></strong></li>
        <span>›</span>
        <li><a href="{% url 'core:topic-detail' topic.pk %}">{{ topic.name }}</a></li>
    </menu>
</div>
{% endblock breadcrumbs %}

{% block content %}
<h1>+ New Post</h1>
<form method="POST" action="{% url 'core:post-create' topic.pk %}" enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.as_p }}
    <p>
        <input type="submit" value="Create"> or <a href="{% url 'core:topic-detail' topic.pk %}">cancel</a>
    </p>
</form>
{% endblock %}
