{% if editor_type == 'markdown' %}
{{ post_form.text }}{# this element is resizable and will be wrapped by js #}
{% else %}
{{ post_form.media }} {{ post_form.text }}
{% endif %}

{# need label element for resizable input, b/c form validation won't find span #} {% if post_type == 'question' %}
{% if use_category_selector %} {% include "widgets/three_column_category_selector.html" %}
{% trans %}Tags{% endtrans %}
{% include "widgets/tag_editor.html" %} {% else %} {% if tags_are_required %} {% else %} {% trans %}tags:{% endtrans %} {% endif %} {{ post_form.tags.errors }}
{{ post_form.tags }}
{% endif %}
{% endif %} {#% if 'summary' in post_form['fields'] %}
{{ post_form.summary.label_tag() }}
{{ post_form.summary }}
{{ post_form.summary.help_text }}
{{ post_form.summary.errors }}
{% endif %#} {% if editor_type == 'markdown' %}
[{% trans %}hide preview{% endtrans %}]
{% endif %} {% if user and user.is_authenticated() and user.is_administrator() %} {# admin can post answers or questions on behalf of anyone. #}
{{ post_form.post_author_username }}
{{ post_form.post_author_email }}
{{ post_form.post_author_username.errors }} {{ post_form.post_author_email.errors }}
{% endif %}