06/16 Phase 6 (continue)

This commit is contained in:
2026-06-17 17:06:43 -04:00
parent 479afde2fa
commit 68a842d6b6
26 changed files with 1027 additions and 61 deletions
+18
View File
@@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block title %}{{ _('Admin · %(name)s schema', name=cat.name) }}{% endblock %}
{% block content %}
{% include "admin/_nav.html" %}
<div class="card">
<h2>{{ _('Field schema: %(name)s', name=cat.name) }}</h2>
<p class="muted">{{ _('Edit the JSON field schema for this category. Supported types: text, number, select, bool. Add "hot": true to denormalize onto an indexed column.') }}</p>
{% if error %}<p class="flash danger">{{ error }}</p>{% endif %}
<form method="post" action="{{ url_for('admin.category_schema', cat_id=cat.id) }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="field">
<textarea class="input" name="field_schema" rows="20" style="font-family:monospace;font-size:13px">{{ schema_str }}</textarea>
</div>
<button class="btn" type="submit">{{ _('Save schema') }}</button>
<a class="btn ghost" href="{{ url_for('admin.categories') }}">{{ _('Cancel') }}</a>
</form>
</div>
{% endblock %}