Adjust tests to new attributes
[phpmyadmin.git] / templates / columns_definitions / table_fields_definitions.phtml
bloba300040f5279708e97194854c2b30270502fa1f4
1 <table id="table_columns" class="noclick">
2     <caption class="tblHeaders">
3         <?= __('Structure'); ?>
4         <?= PMA\libraries\Util::showMySQLDocu('CREATE_TABLE'); ?>
5     </caption>
6     <tr>
7         <th>
8             <?= __('Name'); ?>
9         </th>
10         <th>
11             <?= __('Type') , PMA\libraries\Util::showMySQLDocu('data-types'); ?>
12         </th>
13         <th>
14             <?= __('Length/Values') , PMA\libraries\Util::showHint(
15                     __(
16                         'If column type is "enum" or "set", please enter the values using'
17                         . ' this format: \'a\',\'b\',\'c\'…<br />If you ever need to put'
18                         . ' a backslash ("\") or a single quote ("\'") amongst those'
19                         . ' values, precede it with a backslash (for example \'\\\\xyz\''
20                         . ' or \'a\\\'b\').'
21                     )
22                 ); ?>
23         </th>
24         <th>
25             <?= __('Default') , PMA\libraries\Util::showHint(
26                     __(
27                         'For default values, please enter just a single value,'
28                         . ' without backslash escaping or quotes, using this format: a'
29                     )
30                 ); ?>
31         </th>
32         <th>
33             <?= __('Collation'); ?>
34         </th>
35         <th>
36             <?= __('Attributes'); ?>
37         </th>
38         <th>
39             <?= __('Null'); ?>
40         </th>
42         <!-- Only for 'Edit' Column(s) -->
43         <?php if (isset($_REQUEST['change_column'])
44             && ! empty($_REQUEST['change_column'])
45         ): ?>
46             <th>
47                 <?= __('Adjust privileges') , PMA\libraries\Util::showDocu('faq', 'faq6-39'); ?>
48             </th>
49         <?php endif; ?>
51         <?php
52         // We could remove this 'if' and let the key information be shown and
53         // editable. However, for this to work, structure.lib.php must be modified
54         // to use the key fields, as tbl_addfield does.
55         if (!$is_backup): ?>
56             <th>
57                 <?= __('Index'); ?>
58             </th>
59         <?php endif; ?>
61         <th>
62             <abbr title="AUTO_INCREMENT">A_I</abbr>
63         </th>
64         <th>
65             <?= __('Comments'); ?>
66         </th>
68         <?php if (PMA\libraries\Util::isVirtualColumnsSupported()): ?>
69             <th>
70                 <?= __('Virtuality'); ?>
71             </th>
72         <?php endif; ?>
74         <?php if (isset($fields_meta)): ?>
75             <th>
76                 <?= __('Move column'); ?>
77             </th>
78         <?php endif; ?>
80         <?php if ($mimework && $GLOBALS['cfg']['BrowseMIME']): ?>
81             <th>
82                 <?= __('MIME type'); ?>
83             </th>
84             <th>
85                 <a href="transformation_overview.php<?= PMA\libraries\URL::getCommon(); ?>#transformation"
86                    title="<?= __('List of available transformations and their options'); ?>"
87                    target="_blank">
88                     <?= __('Browser display transformation'); ?>
89                 </a>
90             </th>
91             <th>
92                 <?= __('Browser display transformation options'); ?>
93                 <?= PMA\libraries\Util::showHint(
94                     __(
95                         'Please enter the values for transformation options using this'
96                         . ' format: \'a\', 100, b,\'c\'…<br />If you ever need to put'
97                         . ' a backslash ("\") or a single quote ("\'") amongst those'
98                         . ' values, precede it with a backslash (for example \'\\\\xyz\''
99                         . ' or \'a\\\'b\').'
100                     )
101                 ); ?>
102             </th>
103             <th>
104                 <a href="transformation_overview.php<?= PMA\libraries\URL::getCommon(); ?>#input_transformation"
105                    title="<?= __('List of available transformations and their options'); ?>"
106                    target="_blank">
107                     <?= __('Input transformation'); ?>
108                 </a>
109             </th>
110             <th>
111                 <?= __('Input transformation options'); ?>
112                 <?= PMA\libraries\Util::showHint(
113                     __(
114                         'Please enter the values for transformation options using this'
115                         . ' format: \'a\', 100, b,\'c\'…<br />If you ever need to put'
116                         . ' a backslash ("\") or a single quote ("\'") amongst those'
117                         . ' values, precede it with a backslash (for example \'\\\\xyz\''
118                         . ' or \'a\\\'b\').'
119                     )
120                 ); ?>
121             </th>
122         <?php endif; ?>
123     </tr>
124     <?php foreach($content_cells as $content_row): ?>
125         <tr>
126             <?= PMA\libraries\Template::get('columns_definitions/column_attributes')
127                 ->render($content_row); ?>
128         </tr>
129     <?php endforeach; ?>
130 </table>
131 <br />