2020-08-01 17:25:08 +02:00
|
|
|
{% 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>
|
2021-07-08 16:47:39 +02:00
|
|
|
<table class="thread topcomment">
|
2020-08-01 17:25:08 +02:00
|
|
|
<tr>
|
|
|
|
<td class="author">{{ widget_user.profile(comment.author) }}</td>
|
2021-07-08 15:25:16 +02:00
|
|
|
<td><div>{{ comment.text | md }}</div></td>
|
2020-08-01 17:25:08 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="form">
|
|
|
|
<h3>Nouveau commentaire</h3>
|
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
|
|
|
{% if form.pseudo %}
|
2021-07-12 19:06:23 +02:00
|
|
|
<div>
|
|
|
|
{{ form.pseudo.label }}
|
|
|
|
{{ form.pseudo }}
|
|
|
|
{% for error in form.pseudo.errors %}
|
|
|
|
<span class="msgerror">{{ error }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-08-01 17:25:08 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2020-10-31 22:15:03 +01:00
|
|
|
{{ widget_editor.text_editor(form.message, label=False, autofocus=True) }}
|
2020-08-01 17:25:08 +02:00
|
|
|
|
2021-07-12 19:06:23 +02:00
|
|
|
{% if form.attachment_list %}
|
|
|
|
<div>Supprimer des pièces jointes<br>
|
|
|
|
{% for id, a in form.attachment_list.items() %}
|
|
|
|
{{ form[id]() }} <code>{{ a.name }}</code> ({{ a.size }} octets)<br>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-07-08 16:47:39 +02:00
|
|
|
|
|
|
|
<div>
|
|
|
|
{{ form.attachments.label }}
|
|
|
|
<div>
|
|
|
|
{{ form.attachments }}
|
|
|
|
{% for error in form.attachments.errors %}
|
|
|
|
<span class="msgerror">{{ error }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-01 17:25:08 +02:00
|
|
|
<div>{{ form.submit(class_='bg-ok') }}</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|