{% 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: {d} is the name of the document. #} {% set title = _('Create a new thread | {d} | Knowledge Base')|f(d=document.title) %} {% set crumbs = [(document.get_absolute_url(), document.title), ((url('wiki.discuss.threads', document.slug), 'rel="ugc nofollow"'), _('Discuss')), (None, _('Create a new thread'))] %} {% set scripts = ('forums',) %} {% block content %}
{{ kbforums_warning(document, user) }}

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

{% if request.limited %}

{{ _('You have exceeded the number of threads and replies that can be posted in a given amount of time. Please try again shortly.') }}

{% endif %}
{% csrf_token %} {{ errorlist(form) }} {% for field in form %}
{{ field.label_tag()|safe }} {% if field.name == 'content' %}
{{ content_editor(field) }}
{% else %} {{ field|safe }} {% endif %}
{% endfor %}
{{ _('Cancel') }}
{% if post_preview %} {% include "kbforums/includes/post_preview.html" %} {% endif %}
{% endblock %}