{% extends "kbforums/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "includes/common_macros.html" import content_editor with context %} {% from "kbforums/includes/macros.html" import kbforums_warning with context %} {# 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 = [(document.get_absolute_url(), document.title), ((url('wiki.discuss.threads', document.slug), 'rel="ugc nofollow"'), _('Discuss')), ((url('wiki.discuss.posts', document.slug, thread.id), 'rel="ugc nofollow"'), thread.title), (None, _('Edit a post'))] %} {% set scripts = ('forums',) %} {% block content %}
{{ kbforums_warning(document, user) }}

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

{% csrf_token %} {{ errorlist(form) }}
{{ form.content.label_tag()|safe }}
{{ content_editor(form.content) }}
{{ _('Cancel') }}
{% if post_preview %} {% include "kbforums/includes/post_preview.html" %} {% endif %}
{% endblock %}