{% load url from future %} {% load i18n pybb_tags %}
{% csrf_token %}
{% include "pybb/form_errors.html" %} {% if form.name %} {% include "pybb/form_field.html" with field=form.name %} {% endif %} {% if lesson_editable %} {% include "pybb/form_field.html" with field=form.lesson %} {% endif %} {% if form.login %} {% include "pybb/form_field.html" with field=form.login %} {% endif %} {% if form.body %} {% include "pybb/form_field.html" with field=form.body %} {% endif %}
{% for smile, url in form.available_smiles.items %}
{% endfor %}
{% if form.poll_type and request.user.is_superuser %} {% include "pybb/poll_edit_form.html" %} {% endif %} {% include "pybb/attachments_formset.html" %}
{% include "pybb/_button_submit.html" %}