From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/database/data_dictionary/index.twig | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 srcs/phpmyadmin/templates/database/data_dictionary/index.twig (limited to 'srcs/phpmyadmin/templates/database/data_dictionary') diff --git a/srcs/phpmyadmin/templates/database/data_dictionary/index.twig b/srcs/phpmyadmin/templates/database/data_dictionary/index.twig new file mode 100644 index 0000000..2f5dc5a --- /dev/null +++ b/srcs/phpmyadmin/templates/database/data_dictionary/index.twig @@ -0,0 +1,65 @@ +

{{ database }}

+{% if comment is not empty %} +

{% trans 'Database comment:' %} {{ comment }}

+{% endif %} + +
+ {% for table in tables %} +
+

{{ table.name }}

+ {% if table.comment is not empty %} +

{% trans 'Table comments:' %} {{ table.comment }}

+ {% endif %} + + + + + + + + {% if table.has_relation %} + + {% endif %} + + {% if table.has_mime %} + + {% endif %} + + {% for column in table.columns %} + + + + + + {% if table.has_relation %} + + {% endif %} + + {% if table.has_mime %} + + {% endif %} + + {% endfor %} +
{% trans 'Column' %}{% trans 'Type' %}{% trans 'Null' %}{% trans 'Default' %}{% trans 'Links to' %}{% trans 'Comments' %}{% trans 'Media (MIME) type' %}
+ {{ column.name }} + {% if column.has_primary_key %} + ({% trans 'Primary' %}) + {% endif %} + + {{ column.print_type }} + {{ column.is_nullable ? 'Yes'|trans : 'No'|trans }} + {% if column.default is null and column.is_nullable %} + NULL + {% else %} + {{ column.default }} + {% endif %} + {{ column.relation }}{{ column.comment }}{{ column.mime }}
+ + {{ table.indexes_table|raw }} +
+ {% endfor %} +
+ + -- cgit