{% extends "forum/base.html" %}
{% load i18n %}

{% block extra-css %}
<link rel="stylesheet" type="text/css"
        href='{{ MEDIA_URL }}markitup/skins/simple/style.css' media="screen, projection" />
<link rel="stylesheet" type="text/css"
        href='{{ MEDIA_URL }}markitup/sets/bbcode/style.css' media="screen, projection" />
{% endblock %}

{% block extra-js %}
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}markitup/jquery.markitup.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}markitup/sets/bbcode/set.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $('#id_raw').markItUp(mySettings);
});
</script>
{% endblock %}

{% block forum_content %}
{% include "forum/parent_tree.html" %}

{% if thread_form.non_field_errors %}
<div class="error">
{{ thread_form.non_field_errors }}
{{ reply_form.non_field_errors }}
</div>
{% endif %}
<h2>New thread for <a href="{{ forum.get_absolute_url }}">{{ forum }}</a></h2>

<form method="post" enctype="multipart/form-data">{% csrf_token %}
{% with thread_form as form %}
    {% include "forum/form.html" %}
{% endwith %}
{% with reply_form as form %}
    {% include "forum/form.html" %}
{% endwith %}
<input type="submit" value='{% trans "Save" %}' />
</form>

{% endblock %}
