{% extends "base.html" %}{% from "_macros.html" import csrf, flash, page_head %} {% block title %}{{ table_name }} row{% endblock %} {% block content %} {% set head_title %}Database / {{ table_name }} / {{ pk }}{% endset %} {{ page_head(head_title) }} {% include "_admin_nav.html" %} {{ flash(request.query_params.get('msg')) }}
{{ csrf() }}
{% for f in fields %}{% endfor %}
{{ f.name }}
{{ f.type }}{% if f.nullable %}, nullable{% endif %}{% if f.pk %}, primary key{% endif %}
{% if f.pk %}{{ f.value }}{% elif f.value|length > 80 or 'JSON' in f.type or 'ARRAY' in f.type %}{% else %}{% endif %}

Empty = NULL for nullable columns. JSON columns take JSON.

{% endblock %}