{# The column-presentation page body — crate::pages::admin::table_definition::ui::PresentationFragment. #} {% include "pages/admin/table_definition/feedback.html" %} {% if page.table_is_writable() %} {% if let Some(detail) = page.detail %} {# One form per column, each carrying its own column id: an alias is never posted apart from the column it was typed into. #}

{{ nav.tr("td-rename-column") }}

{{ nav.tr("td-rename-hint") }}

{% for column in detail.columns %} {% if column.renameable %}
{% else %}

{{ column.name }} — {{ nav.tr("td-alias-locked") }}

{% endif %} {% endfor %}
{# The order forms carry no alias at all, so moving a column cannot rename one. The names below are labels, not inputs. #}

{{ nav.tr("td-order-heading") }}

{{ nav.tr("td-order-hint") }}

    {% for column in detail.columns %}
  1. {{ column.name }}
  2. {% endfor %}
{% endif %} {% endif %} {% if let Some(detail) = page.detail %}

{{ nav.tr("td-columns-now") }} {{ detail.columns.len() }}

{% for column in detail.columns %} {% endfor %}
{{ nav.tr("td-col-column") }}{{ nav.tr("td-col-type") }}{{ nav.tr("td-col-notes") }}
{{ column.name }} {{ column.field_type }}{% if !column.sql_type.is_empty() %} {{ column.sql_type }}{% endif %} {%- for flag in column.flags(nav.locale) %}{{ flag }}{% endfor -%}
{% if !detail.scripts.is_empty() %}

{{ nav.tr("td-scripts") }}

{% for script in detail.scripts %} {% endfor %}
{{ nav.tr("td-col-target-column") }}{{ nav.tr("td-col-type") }}{{ nav.tr("td-col-description") }}
{{ script.target_column }} {{ script.target_column_type }} {{ script.description }}
{{ nav.tr("td-source") }}
{{ script.script }}
{% endif %}
{% endif %}