{# 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. #} {% set title = _('Create a new thread | {f} | Forums')|f(f=forum.name) %} {% set crumbs = [(url('forums.forums'), _('Forums')), (url('forums.threads', forum.slug), forum.name), (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 "forums/includes/post.html" %}
{% endif %}
{% endblock %}