{% extends "base.html" %} {% block title %}{% if is_edit %}Edit{% else %}Create{% endif %} {{ model_name }} — KORM Admin{% endblock %} {% block content %}

{% if is_edit %}Edit{% else %}Create{% endif %} {{ model_name }}

Back to list
{% if flash %}
{{ flash.message }}
{% endif %}
{% for col in columns %} {% if col.name not in skip_fields %}
{% if col.enum %} {% elif col.type in ('boolean', 'bool') %} {% elif col.type in ('text', 'json') %} {% elif col.type in ('datetime', 'timestamp') %} {% elif col.type == 'date' %} {% elif col.type in ('integer', 'increments', 'bigInteger', 'bigIncrements') %} {% elif col.type in ('float', 'decimal') %} {% elif col.format == 'email' %} {% elif col.format == 'url' %} {% else %} {% endif %} {% if col.nullable and not col.required %}
Leave empty for NULL
{% endif %}
{% endif %} {% endfor %}
Cancel
{% endblock %}