{% extends "base/base.html" %}
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/user.html" as widget_user %}

{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » Édition de commentaire</h1>
{% endblock %}

{% block content %}
<section>
	<h1>Déplacer un commentaire</h1>

	<table class="thread topcomment">
		<tr>
			<td class="author">{{ widget_user.profile(comment.author) }}</td>
			<td><div>{{ comment.text | md }}</div></td>
		</tr>
	</table>

	<div class="form">
		<form action="" method="post">
			<h3>Chercher un thread</h3>
			{{ search_form.hidden_tag() }}

			<div>
				{{ search_form.name.label }}
				{{ search_form.name() }}
				{% for error in search_form.name.errors %}
					<span class="msgerror">{{ error }}</span>
				{% endfor %}
			</div>

			<div>{{ search_form.search(class_='bg-ok') }}</div>
		</form>

		<form action="" method="post">
			<h3>Nouveau thread</h3>
			{{ move_form.hidden_tag() }}

			<div>
				{{ move_form.thread.label }}
				{{ move_form.thread }}
				{% for error in move_form.thread.errors %}
					<span class="msgerror">{{ error }}</span>
				{% endfor %}
			</div>

			<div>{{ move_form.submit(class_='bg-ok') }}</div>
		</form>
	</div>
</section>
{% endblock %}
