Files
komp_ac/web/templates/pages/add_table/add_table.html
2026-08-12 13:55:26 +02:00

25 lines
1005 B
HTML

{# GET /admin/tables/new — crate::pages::add_table::ui::AddTablePage #}
{% extends "ui/form_page.html" %}
{% block title %}Add table{% endblock %}
{% block eyebrow %}Table definition{% endblock %}
{% block heading %}Add table{% endblock %}
{% block lead %}<p>Choose whether the table belongs to one profile or is available to all profiles, then add its columns. After creation, you can assign the initial role permissions.</p>{% endblock %}
{% block form %}
{#
One form holds the whole draft. `#builder` is what every interaction swaps,
so the form element itself — and therefore the submit target — survives.
#}
<form id="table-form" hx-post="/admin/tables" hx-target="#builder" hx-swap="innerHTML"
hx-disabled-elt="button[type=submit]">
<div id="builder" aria-live="polite">
{% include "pages/add_table/builder.html" %}
</div>
</form>
<datalist id="currency-codes">
{% for code in currency_codes %}<option value="{{ code }}"></option>{% endfor %}
</datalist>
{% endblock %}