{% extends "base/base.html" %} {% import "widgets/attachments.html" as widget_attachments %} {% import "widgets/thread.html" as widget_thread with context %} {% import "widgets/editor.html" as widget_editor %} {% import "widgets/user.html" as widget_user %} {% set tabtitle = t.forum.name + " - Édition du sujet: " + t.title %} {% block title %} Forum de Planète Casio » {{ t.forum.name }} »

Édition de sujet

{% endblock %} {% block content %}

Édition du sujet: {{ t.title }}

Sujet actuel

Pour modifier substantiellement ou réécrire le commentaire d'en-tête, il vaut mieux poster un nouveau commentaire et le désigner comme en-tête ; ça permet à la conversation de rester dans son contexte.

{% call widget_thread.thread_leader(t.thread.top_comment) %}
Posté le {{ t.date_created | dyndate }}
{{ widget_thread.post_actions(t) }}
{{ t.thread.top_comment.text | md }} {{ widget_attachments.attachments(t.thread.top_comment) }} {% endcall %}

Nouveau sujet

{{ form.hidden_tag() }}
{{ form.forum.label }} {{ form.forum }} {% for error in form.forum.errors %} {{ error }} {% endfor %}
{{ form.title.label }} {{ form.title }} {% for error in form.title.errors %} {{ error }} {% endfor %}
{{ form.summary.label }} {{ form.summary }} {% for error in form.summary.errors %} {{ error }} {% endfor %}
{{ form.thumbnail.label }} {{ form.thumbnail }} {% for error in form.thumbnail.errors %} {{ error }} {% endfor %}
{% if form.pseudo %}
{{ form.pseudo.label }} {{ form.pseudo }} {% for error in form.pseudo.errors %} {{ error }} {% endfor %}
{% endif %} {{ widget_editor.text_editor(form.message, label=False, autofocus=True) }} {% if form.attachment_list %}
Supprimer des pièces jointes
{% for id, a in form.attachment_list.items() %} {{ form[id]() }} {{ a.name }} ({{ a.size }} octets)
{% endfor %}
{% endif %}
{{ form.attachments.label }}
{{ form.attachments }} {% for error in form.attachments.errors %} {{ error }} {% endfor %}
{{ form.submit(class_='bg-ok') }}
{% endblock %}