42 lines
1.0 KiB
HTML
42 lines
1.0 KiB
HTML
|
{% 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>Édition de commentaire</h1>
|
||
|
|
||
|
<h3>Commentaire actuel</h3>
|
||
|
<table class="thread">
|
||
|
<tr>
|
||
|
<td class="author">{{ widget_user.profile(comment.author) }}</td>
|
||
|
<td><div>{{ comment.text }}</div></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div class="form">
|
||
|
<h3>Nouveau commentaire</h3>
|
||
|
<form action="" method="post" enctype="multipart/form-data">
|
||
|
{{ form.hidden_tag() }}
|
||
|
|
||
|
{% if form.pseudo %}
|
||
|
{{ form.pseudo.label }}
|
||
|
{{ form.pseudo }}
|
||
|
{% for error in form.pseudo.errors %}
|
||
|
<span class="msgerror">{{ error }}</span>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
|
||
|
{{ widget_editor.text_editor(form.message, label=False) }}
|
||
|
|
||
|
<div>{{ form.preview(class_='bg-ok') }}</div>
|
||
|
<div>{{ form.submit(class_='bg-ok') }}</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</section>
|
||
|
{% endblock %}
|