{# vim: set ts=2 et sts=2 sw=2: #} {% extends "forums/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "includes/common_macros.html" import content_editor %} {# L10n: {f} if the name of the forum, {t} if the name of the thread. #} {% set title = _('Edit a post | {t} | {f} | Forums')|f(t=thread.title,f=forum.name) %} {% set crumbs = [(url('forums.forums'), _('Forums')), (url('forums.threads', forum.slug), forum.name), (url('forums.posts', forum.slug, thread.id), thread.title), (None, _('Edit a post'))] %} {% block content %}

{{ _('Edit a post') }}

{{ csrf() }} {{ errorlist(form) }}
{{ form.content.label_tag()|safe }} {{ content_editor(form.content) }}
{% if post_preview %}

{{ _('Post Preview:') }}

  1. {% set post = post_preview %} {% include "forums/includes/post.html" %}
{% endif %}
{% endblock %}