{% extends 'base.html' %} {% load static widget_tweaks %} {% load i18n %} {% block content %} {% if saved %}

{{ topic.title }} has been saved.

{% else %}

Add Topic {{user.username}}

{% csrf_token %}
{{ topic_form.title_en.label }} {{ topic_form.title_en|attr:"class:form-control" }} {{ topic_form.description_en.label }} {{ topic_form.description_en|attr:"class:form-control" }}
{{ topic_form.title_ru.label }} {{ topic_form.title_ru|attr:"class:form-control" }} {{ topic_form.description_ru.label }} {{ topic_form.description_ru|attr:"class:form-control" }}
{% if topic_form.errors %} {% for field in topic_form %} {% for error in field.errors %}
{{ error|escape }}
{% endfor %} {% endfor %} {% for error in topic_form.non_field_errors %}
{{ error|escape }}
{% endfor %} {% endif %}
{% endif %} {% endblock %}