{# 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 column_ontologies = table_data.column_ontologies %} {% 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 %} {% set nested_entity_type = table_data.nested_entity_type %}
▼

{{ field_name|replace('_', ' ')|title }}{% if table_data.required %}*{% endif %}

{% if table_data.single %} ({{ table_data.nested_entity_type }}, exactly one) {% else %} ({{ rows|length }} items) {% endif %}
{% if not (table_data.single and rows|length) %} {% endif %}
{% for col in columns %} {% endfor %} {% for row in rows %} {% include "partials/inline_table_row.html" %} {% endfor %}
{{ col|replace('_', ' ')|title }}{% if required_columns and col in required_columns %}*{% endif %} Actions
{% if rows|length == 0 %}

No items yet. Click "+ Add" to create one.

{% endif %}