From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/columns_definitions/partitions.twig | 180 +++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 srcs/phpmyadmin/templates/columns_definitions/partitions.twig (limited to 'srcs/phpmyadmin/templates/columns_definitions/partitions.twig') diff --git a/srcs/phpmyadmin/templates/columns_definitions/partitions.twig b/srcs/phpmyadmin/templates/columns_definitions/partitions.twig new file mode 100644 index 0000000..b8c88af --- /dev/null +++ b/srcs/phpmyadmin/templates/columns_definitions/partitions.twig @@ -0,0 +1,180 @@ +{% set partition_options = [ + '', + 'HASH', + 'LINEAR HASH', + 'KEY', + 'LINEAR KEY', + 'RANGE', + 'RANGE COLUMNS', + 'LIST', + 'LIST COLUMNS' +] %} +{% set sub_partition_options = ['', 'HASH', 'LINEAR HASH', 'KEY', 'LINEAR KEY'] %} +{% set value_type_options = ['', 'LESS THAN', 'LESS THAN MAXVALUE', 'IN'] %} + + + + + + + + + + + + {% if partition_details['can_have_subpartitions'] %} + + + + + + + + + + {% endif %} +
+ + + () +
+ +
+ + + () +
+ +
+{% if partition_details['partition_count'] > 1 %} + + + + {% if partition_details['value_enabled'] %} + + {% endif %} + {% if partition_details['can_have_subpartitions'] + and partition_details['subpartition_count'] > 1 %} + + {% endif %} + + + + + + + + + + {% for partition in partition_details['partitions'] %} + {% set rowspan = partition['subpartition_count'] is not empty + ? partition['subpartition_count'] + 1 : 2 %} + + + {% if partition_details['value_enabled'] %} + + {% endif %} + + + {% if partition['subpartitions'] is defined %} + {% set subpartitions = partition['subpartitions'] %} + {% else %} + {% set subpartitions = [partition] %} + {% endif %} + + {% for subpartition in subpartitions %} + + {% if partition_details['can_have_subpartitions'] + and partition_details['subpartition_count'] > 1 %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endfor %} +
{% trans 'Partition' %}{% trans 'Values' %}{% trans 'Subpartition' %}{% trans 'Engine' %}{% trans 'Comment' %}{% trans 'Data directory' %}{% trans 'Index directory' %}{% trans 'Max rows' %}{% trans 'Min rows' %}{% trans 'Table space' %}{% trans 'Node group' %}
+ + + + +
+ + + {{ get_html_select( + subpartition['prefix'] ~ '[engine]', + null, + subpartition['engine'], + false, + true + ) }} + + {% apply spaceless %} + + {% endapply %} + + + + + + + + + + + + +
+{% endif %} -- cgit