{# 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,
'cfg_relation': cfg_relation,
'max_rows': max_rows
} only %}
{% set ci = ci + 1 %}
{# column type #}
{% include 'columns_definitions/column_type.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'type_upper': type_upper
} only %}
{% set ci = ci + 1 %}
{# column length #}
{% include 'columns_definitions/column_length.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'length_values_input_size': length_values_input_size,
'length_to_display': length
} only %}
{% set ci = ci + 1 %}
{# column default #}
{% include 'columns_definitions/column_default.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'default_value': default_value,
'char_editing': char_editing
} only %}
{% 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 %}
{# column NULL #}
{% include 'columns_definitions/column_null.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta
} only %}
{% set ci = ci + 1 %}
{% if change_column is defined and change_column is not empty %}
{# column Adjust privileges, Only for 'Edit' Column(s) #}
{% include 'columns_definitions/column_adjust_privileges.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'privs_available': privs_available
} only %}
{% set ci = ci + 1 %}
{% endif %}
{% if not is_backup %}
{# column indexes, See my other comment about this 'if'. #}
{% include 'columns_definitions/column_indexes.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta
} only %}
{% set ci = ci + 1 %}
{% endif %}
{# column auto_increment #}
{% include 'columns_definitions/column_auto_increment.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta
} only %}
{% set ci = ci + 1 %}
{# column comments #}
{% include 'columns_definitions/column_comment.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'max_length': max_length,
'value': column_meta['Field'] is defined
and comments_map is iterable
and comments_map[column_meta['Field']] is defined
? comments_map[column_meta['Field']]|e
} only %}
{% set ci = ci + 1 %}
{# column virtuality #}
{% if is_virtual_columns_supported %}
{% include 'columns_definitions/column_virtuality.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'char_editing': char_editing,
'expression': column_meta['Expression'] is defined ? column_meta['Expression'],
'options': options
} only %}
{% 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 %}
{% include 'columns_definitions/move_column.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'move_columns': move_columns,
'current_index': current_index
} only %}
{% set ci = ci + 1 %}
{% endif %}
{% if cfg_relation['mimework'] and browse_mime and cfg_relation['commwork'] %}
{# Column Mime-type #}
{% include 'columns_definitions/mime_type.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'available_mime': available_mime,
'mime_map': mime_map
} only %}
{% set ci = ci + 1 %}
{# Column Browser transformation #}
{% include 'columns_definitions/transformation.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'available_mime': available_mime,
'mime_map': mime_map,
'type': 'transformation'
} only %}
{% set ci = ci + 1 %}
{# column Transformation options #}
{% include 'columns_definitions/transformation_option.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'mime_map': mime_map,
'type_prefix': ''
} only %}
{% set ci = ci + 1 %}
{# Column Input transformation #}
{% include 'columns_definitions/transformation.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'available_mime': available_mime,
'mime_map': mime_map,
'type': 'input_transformation'
} only %}
{% set ci = ci + 1 %}
{# column Input transformation options #}
{% include 'columns_definitions/transformation_option.twig' with {
'column_number': column_number,
'ci': ci,
'ci_offset': ci_offset,
'column_meta': column_meta,
'mime_map': mime_map,
'type_prefix': 'input_'
} only %}
{% set ci = ci + 1 %}