{% for field_name, field_errors in form.errors.items() %} {% for error in field_errors %}
{% if error is mapping %} {% for err_field, err_msg in error.items() %} {{ err_msg }} {% endfor %} {% else %} {{ error }} {% endif %}
{% endfor %} {% endfor %}
{{ form.hidden_tag() }} {% for field in form %} {% if field.name not in ('name', 'csrf_token', 'dictionaries') %} {% endif %} {% endfor %}
{{ form.name.label(class="form-control-label") }} {{ form.name(class="form-control") }}
Dictionaries
{# Render all the dictionaries, but don't show the __TEMPLATE__, added in "_add_hidden_dictionary_template_entry()" in routes.py #} {% for dictionary in form.dictionaries %} {% endfor %}
{{ field.label(class="form-control-label") }} {{ field(class="form-control") }}
{% if language.id %}
{% endif %}