{% extends "sqladmin/layout.html" %} {% from 'sqladmin/_macros.html' import render_form_fields %} {% block content %}

New {{ model_view.name }}

{% block create_form %}
{% if error %} {% endif %}
{{ render_form_fields(form, form_opts=form_opts, ajax_lookup_url=url_for('admin:ajax_lookup', identity=model_view.identity)) }}
{% block submit_buttons_bottom %} {% if model_view.can_edit %} {% endif %} {% endblock %}
{% endblock %}
{# ── Inline hint ── #} {% if model_view.inlines %}
Related items ({{ model_view.inlines | map(attribute='inline_label') | join(', ') }}) will be available to edit after saving. Use Save and continue editing to add them immediately.
{% endif %}
{% endblock %}