{% extends 'board_base.html' %}
{% load i18n %}
{% load forum_conversation_tags %}

{% block sub_title %}{% trans "Post a new topic" %}{% endblock sub_title %}

{% block content %}
<div class="row">
  <div class="col-12">
    <h1>{{ forum.name }}</h1>
  </div>
</div>
{% if poll_preview %}
{% include "forum_conversation/forum_polls/poll_preview.html" %}
{% endif %}
{% if preview %}
{% include "forum_conversation/post_preview.html" %}
{% endif %}
<div class="w-full">
  <div class="w-full rounded border bg-charcoal/60 border-1 border-slate">
    <div class="card post-edit">
      <div class="py-2 px-4 border-b card-header border-slate">
        <h3 class="m-0 text-base h5 card-title">{% trans "Post a new topic" %}</h3>
      </div>
      <div class="p-4 card-body">
        {% include "forum_conversation/partials/topic_form.html" %}
      </div>
    </div>
  </div>
</div>
{% endblock content %}

{% block onbodyload %}
machina.poll.init();
machina.attachment.init();
{% endblock onbodyload %}

{% block extra_css %}
{{ post_form.media.css }}
{% endblock extra_css %}

{% block extra_js %}
{{ post_form.media.js }}
{% endblock extra_js %}
