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

{% block sub_title %}{% trans "Edit post" %}{% 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>
  <div class="w-full bg-charcoal/60 border border-1 border-slate rounded">
    <div class="card post-edit">
      <div class="card-header border-b border-slate px-4 py-2">
        <h3 class="m-0 h5 card-title text-base">{% trans "Edit post" %}</h3>
      </div>
      <div class="card-body p-4">
        {% 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 %}
