{# The append-columns panel — crate::pages::admin::table_definition::ui::ColumnPanelFragment, and what workspace.html embeds inside #column-form. Staging a column writes nothing, so these buttons swap this panel alone. Saving is the form's own submit, which swaps the whole workspace. The field names are the ones crate::schema::ColumnForm declares — the same set the Add-table builder posts, decoded by the same code. #} {# Staging swaps this panel and nothing else, so a refused column has nowhere else to be reported. When the workspace embeds the panel it reports the outcome at the top instead, and this block stays out of the way. #} {% import "ui/alert.html" as panel_alert %} {% import "ui/dialog.html" as panel_dialog %} {% if standalone_column_panel %} {%- if let Some(message) = page.error %}{% call panel_alert::error("Could not add the column", message) %}{% endcall %}{% endif -%} {%- if let Some(message) = page.status %}{% call panel_alert::success("Staged", message) %}{% endcall %}{% endif -%} {%- if let Some(message) = page.error %}{% call panel_dialog::error("Could not add the column", message) %}{% endcall %}{% endif -%} {% endif %}
No columns staged yet. Describe one above and press Stage column.
{% else %}| Name | Type | Indexed | Options | |
|---|---|---|---|---|
{{ column.name }} |
{{ column.data_type }} | {% if column.quantity_ledger %}quantity ledger{% endif %} {% if !column.option_label().is_empty() %}{{ column.option_label() }}{% endif %} |