{# Cell index: If certain fields get left out, the counter shouldn't change. #}
{% set ci = 0 %}
{# Every time a cell shall be left out the STRG-jumping feature, $ci_offset has
to be incremented ($ci_offset++) #}
{% set ci_offset = -1 %}
{# column name #}
{% include 'columns_definitions/column_name.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'has_central_columns_feature': relation_parameters.centralColumnsFeature is not null,
'max_rows': max_rows
} only %}
{% set ci = ci + 1 %}
{% if char_editing == 'textarea' %}
{% else %}
{% endif %}
{% set ci = ci + 1 %}
{# column collation #}
{% set ci = ci + 1 %}
{# column attribute #}
{% include 'columns_definitions/column_attribute.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'extracted_columnspec': extracted_columnspec,
'submit_attribute': submit_attribute,
'attribute_types': attribute_types
} only %}
{% set ci = ci + 1 %}
{% set ci = ci + 1 %}
{% if change_column is defined and change_column is not empty %}
{# column Adjust privileges, Only for 'Edit' Column(s) #}
{%- else %} title="{% trans "You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details" %}" disabled>
{%- endif %}
{% set ci = ci + 1 %}
{% endif %}
{% if not is_backup %}
{# column indexes, See my other comment about this 'if'. #}
{% set ci = ci + 1 %}
{% endif %}
{% set ci = ci + 1 %}
{% set ci = ci + 1 %}
{# column virtuality #}
{% if is_virtual_columns_supported %}
{% if char_editing == 'textarea' %}
{% else %}
{% endif %}
{% set ci = ci + 1 %}
{% endif %}
{# move column #}
{% if fields_meta is defined %}
{% set current_index = 0 %}
{% set cols = move_columns|length - 1 %}
{% set break = false %}
{% for mi in 0..cols %}
{% if move_columns[mi].name == column_meta['Field'] and not break %}
{% set current_index = mi %}
{% set break = true %}
{% endif %}
{% endfor %}
{% set ci = ci + 1 %}
{% endif %}
{% if relation_parameters.browserTransformationFeature is not null and relation_parameters.columnCommentsFeature is not null and browse_mime %}