{# getHtmlForAddNewColumn #}
{{ (total_rows > 0) ? '+' : '-' }}{% trans 'Add new column' %}
{{ get_hidden_inputs(db) }}
{% trans 'Name' %}
{% trans 'Type' %}
{% trans 'Length/Value' %}
{% trans 'Default' %}
{% trans 'Collation' %}
{% trans 'Attribute' %}
{% trans 'Null' %}
{% trans 'A_I' %}
{% include 'columns_definitions/column_name.twig' with { 'column_number': 0, 'ci': 0, 'ci_offset': 0, 'column_meta': {}, 'cfg_relation': { 'centralcolumnswork': false }, 'max_rows': max_rows, } only %} {% include 'columns_definitions/column_type.twig' with { 'column_number': 0, 'ci': 1, 'ci_offset': 0, 'type_upper': '', 'column_meta': {} } only %} {% include 'columns_definitions/column_length.twig' with { 'column_number': 0, 'ci': 2, 'ci_offset': 0, 'length_values_input_size': 8, 'length_to_display': '' } only %} {% include 'columns_definitions/column_default.twig' with { 'column_number': 0, 'ci': 3, 'ci_offset': 0, 'default_value': '', 'column_meta': {}, 'char_editing': char_editing, } only %} {% include 'columns_definitions/column_attribute.twig' with { 'column_number': 0, 'ci': 5, 'ci_offset': 0, 'extracted_columnspec': {}, 'column_meta': {}, 'submit_attribute': false, 'attribute_types': attribute_types, } only %} {% include 'columns_definitions/column_null.twig' with { 'column_number': 0, 'ci': 6, 'ci_offset': 0, 'column_meta': {} } only %} {% include 'columns_definitions/column_extra.twig' with { 'column_number': 0, 'ci': 7, 'ci_offset': 0, 'column_meta': {} } only %}
{% if total_rows <= 0 %}
{% trans 'The central list of columns for the current database is empty' %}
{% else %} {% if pos - max_rows >= 0 %} {% endif %} {% if tn_nbTotalPage > 1 %} {% endif %} {% if pos + max_rows < total_rows %} {% endif %} {% endif %} {# getHtmlForAddColumn #}
{{ get_icon('centralColumns_add', 'Add column' | trans)|raw }}
{{ get_hidden_inputs(db) | raw }} {# getHtmlForTableDropdown #}
{% if total_rows > 0 %}
{{ get_hidden_inputs(db) }}
{% set class = 'column_heading' %} {% set title = 'Click to sort.' | trans %} {% set row_num = 0 %} {% for row in rows_list %} {# getHtmlForTableRow #} {{ get_hidden_inputs(db) }} {% set row_num = row_num + 1 %} {% endfor %}
{% trans 'Action' %} {% trans 'Name' %}
{% trans 'Type' %}
{% trans 'Length/Value' %}
{% trans 'Default' %}
{% trans 'Collation' %}
{% trans 'Attribute' %}
{% trans 'Null' %}
{% trans 'A_I' %}
{{ get_icon('b_edit', 'Edit' | trans) | raw }} {{ get_icon('b_drop', 'Delete' | trans) }} {{ row['col_name'] }} {% include 'columns_definitions/column_name.twig' with { 'column_number': row_num, 'ci': 0, 'ci_offset': 0, 'column_meta': { 'Field': row['col_name'] }, 'cfg_relation': { 'centralcolumnswork': false }, 'max_rows': max_rows } only %} {{ row['col_type'] }} {% include 'columns_definitions/column_type.twig' with { 'column_number': row_num, 'ci': 1, 'ci_offset': 0, 'type_upper': types_upper[row_num], 'column_meta': {} } only %} {{ (row['col_length']?(row['col_length']):'') }} {% include 'columns_definitions/column_length.twig' with { 'column_number': row_num, 'ci': 2, 'ci_offset': 0, 'length_values_input_size': 8, 'length_to_display': row['col_length'] } only %} {% if row['col_default'] is defined %} {{ row['col_default'] }} {% else %} None {% endif %} {% include 'columns_definitions/column_default.twig' with { 'column_number': row_num, 'ci': 3, 'ci_offset': 0, 'default_value': default_values[row_num], 'column_meta': rows_meta[row_num], 'char_editing': char_editing, } only %} {{ row['col_collation'] }} {{ row['col_attribute']?(row['col_attribute']):"" }} {% include 'columns_definitions/column_attribute.twig' with { 'column_number': row_num, 'ci': 5, 'ci_offset': 0, 'extracted_columnspec': {}, 'column_meta': row['col_attribute'], 'submit_attribute': false, 'attribute_types': attribute_types, } only %} {{ row['col_isNull'] ? 'Yes' | trans : 'No' | trans }} {% include 'columns_definitions/column_null.twig' with { 'column_number': row_num, 'ci': 6, 'ci_offset': 0, 'column_meta': { 'Null': row['col_isNull'] } } only %} {{ row['col_extra'] }} {% include 'columns_definitions/column_extra.twig' with { 'column_number': row_num, 'ci': 7, 'ci_offset': 0, 'column_meta': { 'Extra': row['col_extra'] } } only %}
{# getTableFooter #} {% include 'select_all.twig' with { 'pma_theme_image': pmaThemeImage, 'text_dir' : text_dir, 'form_name' : 'tableslistcontainer', } only %} {{ get_button_or_image( 'edit_central_columns', 'mult_submit change_central_columns', 'Edit' | trans, 'b_edit', 'edit central columns' ) | raw }} {{ get_button_or_image( 'delete_central_columns', 'mult_submit', 'Delete' | trans, 'b_drop', 'remove_from_central_columns' ) | raw }}
{% endif %}