{% extends "layout.html" %} {% block page_title %} Forms {% endblock %} {% block content %} {% if valid_doc %}

Your form doc is valid

Your form doc is valid, you can now go back to Forms and proceed using the forms.

{% else %}

Oops, something went wrong

Oops, something is wrong with your form doc at {{ doc_path }}

Details of the errors:

{% if yaml_error is not none %}
{{ yaml_error }}
{% elif validation_error is not none %}
    {% for error in validation_error.errors() %}
  1. {{ error['msg'] }}
    {% for key, value in error.items() if key not in ['type', 'msg'] %}
    {{ key | capitalize }}:
    {% if key == 'loc' %} {{ error[key] | format_loc }} {% elif key == 'url' %} {{ error[key] | urlize }} {% else %} {{ error[key] }} {% endif %}
    {% endfor %}
    Type {{ error['type'] }}
  2. {% endfor %}
{% elif value_error is not none %}
{{ value_error }}
{% endif %} {% endif %} {% endblock content %}