aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/database/data_dictionary/index.twig
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-09 10:55:03 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-09 13:09:38 +0100
commit04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch)
tree5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/templates/database/data_dictionary/index.twig
parent7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff)
downloadft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/templates/database/data_dictionary/index.twig')
-rw-r--r--srcs/phpmyadmin/templates/database/data_dictionary/index.twig65
1 files changed, 65 insertions, 0 deletions
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 @@
+<h1>{{ database }}</h1>
+{% if comment is not empty %}
+ <p>{% trans 'Database comment:' %} <em>{{ comment }}</em></p>
+{% endif %}
+
+<div>
+ {% for table in tables %}
+ <div>
+ <h2>{{ table.name }}</h2>
+ {% if table.comment is not empty %}
+ <p>{% trans 'Table comments:' %} <em>{{ table.comment }}</em></p>
+ {% endif %}
+
+ <table class="print">
+ <tr>
+ <th>{% trans 'Column' %}</th>
+ <th>{% trans 'Type' %}</th>
+ <th>{% trans 'Null' %}</th>
+ <th>{% trans 'Default' %}</th>
+ {% if table.has_relation %}
+ <th>{% trans 'Links to' %}</th>
+ {% endif %}
+ <th>{% trans 'Comments' %}</th>
+ {% if table.has_mime %}
+ <th>{% trans 'Media (MIME) type' %}</th>
+ {% endif %}
+ </tr>
+ {% for column in table.columns %}
+ <tr>
+ <td class="nowrap">
+ {{ column.name }}
+ {% if column.has_primary_key %}
+ <em>({% trans 'Primary' %})</em>
+ {% endif %}
+ </td>
+ <td lang="en" dir="ltr"{{ 'set' != column.type and 'enum' != column.type ? ' class="nowrap"' }}>
+ {{ column.print_type }}
+ </td>
+ <td>{{ column.is_nullable ? 'Yes'|trans : 'No'|trans }}</td>
+ <td class="nowrap">
+ {% if column.default is null and column.is_nullable %}
+ <em>NULL</em>
+ {% else %}
+ {{ column.default }}
+ {% endif %}
+ </td>
+ {% if table.has_relation %}
+ <td>{{ column.relation }}</td>
+ {% endif %}
+ <td>{{ column.comment }}</td>
+ {% if table.has_mime %}
+ <td>{{ column.mime }}</td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </table>
+
+ {{ table.indexes_table|raw }}
+ </div>
+ {% endfor %}
+</div>
+
+<p class="print_ignore">
+ <input type="button" class="btn btn-secondary button" id="print" value="{% trans 'Print' %}">
+</p>