{# vim: set ts=2 et sts=2 sw=2: #} {% extends "kbforums/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "includes/common_macros.html" import content_editor %} {# L10n: {t} is the title of the thread. {d} is the name of the document. #} {% set title = _('Edit a post | {t} | {d} Discussion | Knowledge Base')|f(t=thread.title, d=document.title) %} {% set crumbs = [(url('wiki.category', document.category), document.get_category_display()), (document.get_absolute_url(), document.title), (url('wiki.discuss.threads', document.slug), _('Discuss')), (url('wiki.discuss.posts', document.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 "kbforums/includes/post.html" %}
{% endif %}
{% endblock %}