{% for col in columns %} {% set is_parent_id = parent_id_fields and col in parent_id_fields %} {% set col_type = column_types.get(col, 'string') if column_types else 'string' %} {% set constraints = column_constraints.get(col, {}) if column_constraints else {} %} {% set ontologies = column_ontologies.get(col, []) if column_ontologies else [] %} {% set ref_info = reference_fields.get(col, {}) if reference_fields else {} %} {% set is_ontology = col_type == 'ontology_term' %} {% set show_lookup = (ref_info and not is_parent_id) or is_ontology %} {{ row.get(col, '')|display }}
{% if is_ontology %} {% elif ref_info and not is_parent_id %} {% endif %}
{% endfor %}