{% extends "site_base.html" %}
{% load thumbnail %}
{% load account_tags %}
{% user_display user as user_display %}

{% block metas %}
    <title>{{ _('Add reply') }} - {{ settings.SITE_TITLE }}</title>
    <meta name="description" content="{{ settings.SITE_DESCRIPTION }}" />
{% endblock %}

{% block breadcrumbs %}
{% endblock %}

{% block content %}
  {% if user.is_authenticated %}
	<section id="forum">

	  <ul class="breadcrumb">
		<li><i class="icon-home"></i> <a href="{% url app_forum-forum-index %}">{{ _('Index') }}</a> <span class="divider">/</span></li>
		<li><i class="icon-folder-open"></i> <a href="{% url app_forum-forum-detail mytopic.forum.slug %}">{{ mytopic.forum.title }}</a> <span class="divider">/</span></li>
		<li><i class="icon-folder-open"></i> <a href="{% url app_forum-topic-list mytopic.forum.slug mytopic.slug %}">{{ mytopic.title }}</a> <span class="divider">/</span></li>
		<li><i class="icon-plus-sign"></i> {{ _('Add reply') }}</li>
	  </ul>

	  {% include "rforum/elements/forum-top.html" %}

	  <div class="forum">
		<table class="table table-bordered">
		  <thead>
			<tr>
			  <th colspan="2"><h3>{{ mytopic.title }}</h3></th>
		  </thead>
		  <tbody>
			<tr>
			  <td>
				<form action="" method="POST" class="form-horizontal">
				  {% csrf_token %}
				  {{ form.as_p }}
				  <input type="submit" class="btn btn-info" value="{{ _('Submit') }}" />
				</form>
			  </td>
			  <td style="text-align: center; width: 200px;">
				{% include "rforum/elements/form-userdetail.html" %}
			  </td>
			</tr>
		  </tbody>
		</table>
	  </div>

	  {% include "rforum/elements/forum-bottom.html" %}

	</section>
  {% endif %}
{% endblock %}

{% block javascript %}
	<script type="text/javascript" src="{{ STATIC_URL }}js/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript" src="{{ STATIC_URL }}js/textareas_public.js"></script>
{% endblock %}
