Serve media files in debug mode under katalog subdomain
[edumed.git] / forum / templates / pybb / post_form.html
1 {% load url from future %}
2 {% load i18n pybb_tags %}
3 <form class="post-form" action="
4     {% if forum %}
5         {% url 'pybb:add_topic' forum.pk %}
6     {% else %}
7         {% if topic %}
8             {% url 'pybb:add_post' topic.pk %}
9         {% else %}
10             {% url 'pybb:edit_post' pk=object.pk %}
11         {% endif %}
12     {% endif %}" method="post" enctype="multipart/form-data">
13   {% csrf_token %}
14   <fieldset>
15     {% include "pybb/form_errors.html" %}
16     {% if form.name %} {% include "pybb/form_field.html" with field=form.name %} {% endif %}
17
18     {% if lesson_editable %}
19         {% include "pybb/form_field.html" with field=form.lesson %}
20     {% endif %}
21
22     {% if form.login %} {% include "pybb/form_field.html" with field=form.login %}  {% endif %}
23     {% if form.body %} {% include "pybb/form_field.html" with field=form.body %}  {% endif %}
24     <div id='emoticons'>
25       {% for smile, url in form.available_smiles.items %}
26         <a href='#' title='{{ smile|safe }}'><img src='{{ STATIC_URL }}{{ form.smiles_prefix }}{{ url }}'></a>
27       {% endfor %}
28     </div>
29
30     {% if form.poll_type and request.user.is_superuser %}
31       {% include "pybb/poll_edit_form.html" %}
32     {% endif %}
33     {% include "pybb/attachments_formset.html" %}
34     <p class="submit">{% include "pybb/_button_submit.html" %}</p>
35   </fieldset>
36 </form>