From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../table_fields_definitions.twig | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 srcs/phpmyadmin/templates/columns_definitions/table_fields_definitions.twig (limited to 'srcs/phpmyadmin/templates/columns_definitions/table_fields_definitions.twig') diff --git a/srcs/phpmyadmin/templates/columns_definitions/table_fields_definitions.twig b/srcs/phpmyadmin/templates/columns_definitions/table_fields_definitions.twig new file mode 100644 index 0000000..f23b2fe --- /dev/null +++ b/srcs/phpmyadmin/templates/columns_definitions/table_fields_definitions.twig @@ -0,0 +1,122 @@ +
+ + + + + + + + + + + + {# Only for 'Edit' Column(s) #} + {% if change_column is defined and change_column is not empty %} + + {% endif %} + + {# We could remove this 'if' and let the key information be shown and + editable. However, for this to work, structure.lib.php must be + modified to use the key fields, as tbl_addfield does. #} + {% if not is_backup %} + + {% endif %} + + + + + {% if is_virtual_columns_supported %} + + {% endif %} + + {% if fields_meta is defined %} + + {% endif %} + + {% if mimework and browse_mime %} + + + + + + {% endif %} + + {% set options = {'': '', 'VIRTUAL': 'VIRTUAL'} %} + {% if server_type == 'MariaDB' %} + {% set options = options|merge({'PERSISTENT': 'PERSISTENT'}) %} + {% set options = options|merge({'STORED': 'STORED'}) %} + {% else %} + {% set options = options|merge({'STORED': 'STORED'}) %} + {% endif %} + {% for content_row in content_cells %} + + {% include 'columns_definitions/column_attributes.twig' with content_row|merge({ + 'options': options, + 'change_column': change_column, + 'is_virtual_columns_supported': is_virtual_columns_supported, + 'browse_mime': browse_mime, + 'max_rows': max_rows, + 'char_editing': char_editing, + 'attribute_types': attribute_types, + 'privs_available': privs_available, + 'max_length': max_length, + 'charsets': charsets + }) only %} + + {% endfor %} +
+ {% trans 'Structure' %} + {{ show_mysql_docu('CREATE_TABLE') }} +
+ {% trans 'Name' %} + + {% trans 'Type' %} + {{ show_mysql_docu('data-types') }} + + {% trans 'Length/Values' %} + {{ show_hint('If column type is "enum" or "set", please enter the values using this format: \'a\',\'b\',\'c\'…
If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, precede it with a backslash (for example \'\\\\xyz\' or \'a\\\'b\').'|trans) }} +
+ {% trans 'Default' %} + {{ show_hint('For default values, please enter just a single value, without backslash escaping or quotes, using this format: a'|trans) }} + + {% trans 'Collation' %} + + {% trans 'Attributes' %} + + {% trans 'Null' %} + + {% trans 'Adjust privileges' %} + {{ show_docu('faq', 'faq6-39') }} + + {% trans 'Index' %} + + A_I + + {% trans 'Comments' %} + + {% trans 'Virtuality' %} + + {% trans 'Move column' %} + + {% trans 'Media (MIME) type' %} + + + {% trans 'Browser display transformation' %} + + + {% trans 'Browser display transformation options' %} + {{ show_hint('Please enter the values for transformation options using this format: \'a\', 100, b,\'c\'…
If you ever need to put a backslash ("\\") or a single quote ("\'") amongst those values, precede it with a backslash (for example \'\\\\xyz\' or \'a\\\'b\').'|trans) }} +
+ + {% trans 'Input transformation' %} + + + {% trans 'Input transformation options' %} + {{ show_hint('Please enter the values for transformation options using this format: \'a\', 100, b,\'c\'…
If you ever need to put a backslash ("\\") or a single quote ("\'") amongst those values, precede it with a backslash (for example \'\\\\xyz\' or \'a\\\'b\').'|trans) }} +
+
-- cgit