{# 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: {d} is the name of the document. #} {% set title = _('Create a new thread | {d} | Knowledge Base')|f(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')), (None, _('Create a new thread'))] %} {% block content %}

{{ _('Create a new thread') }}

{{ csrf() }} {{ errorlist(form) }} {% for field in form %}
{{ field.label_tag()|safe }} {% if field.name == 'content' %} {{ content_editor(field) }} {% else %} {{ field|safe }} {% endif %}
{% endfor %} {% if post_preview %}

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

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