{# Extract table data from context #} {% set field_name = field.name %} {% set columns = table_data.columns %} {% set rows = table_data.rows %} {% set column_types = table_data.column_types %} {% set column_constraints = table_data.column_constraints %} {% set required_columns = table_data.required_columns %} {% set reference_fields = table_data.reference_fields %} {% set parent_id_fields = table_data.parent_id_fields %} {% set has_nested_children = table_data.has_nested_children %} {% set parent_entity_type = entity_type %}
| {{ col|replace('_', ' ')|title }}{% if required_columns and col in required_columns %}*{% endif %} | {% endfor %}Actions |
|---|---|
|
{% set col_type = column_types.get(col, 'string') if column_types else 'string' %}
{% set constraints = column_constraints.get(col, {}) if column_constraints else {} %}
{% set ref_info = reference_fields.get(col, {}) if reference_fields else {} %}
{% set show_lookup = ref_info and not is_parent_id %}
{{ row.get(col, '')|display }}
{% if show_lookup %}
{% endif %}
|
{% endfor %}
{% if has_nested_children %} {% endif %} |
No items yet. Click "+ Add" to create one.
{% endif %}