<!DOCTYPE html>

    {% include 'partials/head.html' %}
	{% include 'partials/header.html' %}
	{% include 'partials/video.html' %}

<div class="main-page">
    <div class="middle-content">
        <div class="body-content">
            <div class="title-content"><h1>Nuevo tema</h1></div>
            <div class="box-content">
                <div class="body-box-content">
                    {% include 'forum/_style.html' %}
                    <div class="forum-wrap forum-form">
                        <p style="color:#b1997f">Foro: <strong>{{ forum.name }}</strong></p>
                        <form action="{% url 'forum_create_topic_submit' forum_id=forum.id %}" method="POST">
                            {% csrf_token %}
                            {{ form.name }}
                            {{ form.text }}
                            <div class="forum-actions">
                                <button type="submit" class="forum-btn">Publicar tema</button>
                                <a class="forum-btn" href="{% url 'forum_view_p1' forum_id=forum.id %}">Cancelar</a>
                            </div>
                        </form>
                        {{ form.media }}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

	{% include 'partials/social.html' %}
	{% include 'partials/footer.html' %}
	{% include 'partials/final.html' %}
