{{ name }}

{% for field in fields %}
{% if field.is_nested %}

{{ field.name }}

{% for nested_field in field.nested_fields %}
{% if nested_field.description %}
{{ nested_field.description }}
{% endif %}
{{ nested_field.name }} {% if nested_field.is_required %}*{% endif %}
{% if nested_field.choices %}
{% for choice in nested_field.choices %}
{{ choice }}
{% endfor %}
{% elif nested_field.type == 'bool' %} {% elif nested_field.type == 'int' %} {% elif nested_field.type == 'float' %} {% elif nested_field.type == 'str' %} {% else %} {% endif %} {% if errors and nested_field.name in errors %}
{{ errors[nested_field.name] }}
{% endif %}
{% endfor %}
{% else %} {% if field.description %}
{{ field.description }}
{% endif %}
{{ field.name }} {% if field.is_required %}*{% endif %}
{% if field.choices %}
{% for choice in field.choices %}
{{ choice }}
{% endfor %}
{% elif field.type == 'bool' %} {% elif field.type == 'int' %} {% elif field.type == 'float' %} {% elif field.type == 'str' %} {% else %} {% endif %} {% if errors and field.name in errors %}
{{ errors[field.name] }}
{% endif %} {% endif %}
{% endfor %}
{% if msg is not none %}
Success!
Data: {{ msg['data'] }}
Instance: {{ msg['instance'] }}
Saved to: {{ msg['location'] }}
{% endif %}