|
18 | 18 | {% set ci = ci + 1 %} |
19 | 19 | </td> |
20 | 20 | <td class="text-center"> |
21 | | - <select class="column_type" name="field_type[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" |
| 21 | + <select class="column_type form-select" name="field_type[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" |
22 | 22 | {{- column_meta['column_status'] is defined and not column_meta['column_status']['isEditable'] ? ' disabled' }}> |
23 | 23 | {{ get_supported_datatypes(type_upper) }} |
24 | 24 | </select> |
25 | 25 | {% set ci = ci + 1 %} |
26 | 26 | </td> |
27 | 27 | <td class="text-center"> |
28 | 28 | <input id="field_{{ column_number }}_{{ ci - ci_offset }}" type="text" name="field_length[{{ column_number }}]" size=" |
29 | | - {{- length_values_input_size }}" value="{{ length }}" class="textfield"> |
| 29 | + {{- length_values_input_size }}" value="{{ length }}" class="textfield form-control"> |
30 | 30 | <p class="enum_notice" id="enum_notice_{{ column_number }}_{{ ci - ci_offset }}"> |
31 | 31 | <a href="#" class="open_enum_editor">{{ t('Edit ENUM/SET values') }}</a> |
32 | 32 | </p> |
33 | 33 | {% set ci = ci + 1 %} |
34 | 34 | </td> |
35 | 35 | <td class="text-center"> |
36 | | - <select name="field_default_type[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="default_type"> |
| 36 | + <select name="field_default_type[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="default_type form-select"> |
37 | 37 | <option value="NONE"{{ column_meta['DefaultType'] is defined and column_meta['DefaultType'] == 'NONE' ? ' selected' }}> |
38 | 38 | {{ t('None', context = 'for default') }} |
39 | 39 | </option> |
|
53 | 53 | {% endif %} |
54 | 54 | </select> |
55 | 55 | {% if char_editing == 'textarea' %} |
56 | | - <textarea name="field_default_value[{{ column_number }}]" cols="15" class="textfield default_value">{{ default_value }}</textarea> |
| 56 | + <textarea name="field_default_value[{{ column_number }}]" cols="15" class="textfield default_value form-control" style="resize: both;">{{ default_value }}</textarea> |
57 | 57 | {% else %} |
58 | | - <input type="text" name="field_default_value[{{ column_number }}]" size="12" value="{{ default_value ?? '' }}" class="textfield default_value"> |
| 58 | + <input type="text" name="field_default_value[{{ column_number }}]" size="12" value="{{ default_value ?? '' }}" class="textfield default_value form-control"> |
59 | 59 | {% endif %} |
60 | 60 | {% set ci = ci + 1 %} |
61 | 61 | </td> |
62 | 62 | <td class="text-center"> |
63 | 63 | {# column collation #} |
64 | | - <select lang="en" dir="ltr" name="field_collation[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}"> |
| 64 | + <select lang="en" dir="ltr" name="field_collation[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="form-select"> |
65 | 65 | <option value=""></option> |
66 | 66 | {% for charset in charsets %} |
67 | 67 | <optgroup label="{{ charset.name }}" title="{{ charset.description }}"> |
|
90 | 90 | {% set ci = ci + 1 %} |
91 | 91 | </td> |
92 | 92 | <td class="text-center"> |
93 | | - <input name="field_null[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="YES" class="allow_null" |
| 93 | + <input name="field_null[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="YES" class="allow_null form-check-input" |
94 | 94 | {{- column_meta['Null'] is defined and column_meta['Null'] is not empty and column_meta['Null'] != 'NO' and column_meta['Null'] != 'NOT NULL' ? ' checked' }}> |
95 | 95 | {% set ci = ci + 1 %} |
96 | 96 | </td> |
97 | 97 | {% if change_column is defined and change_column is not empty %} |
98 | 98 | {# column Adjust privileges, Only for 'Edit' Column(s) #} |
99 | 99 | <td class="text-center"> |
100 | | - <input name="field_adjust_privileges[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="NULL" class="allow_null" |
| 100 | + <input name="field_adjust_privileges[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="NULL" class="allow_null form-check-input" |
101 | 101 | {%- if privs_available %} checked> |
102 | 102 | {%- else %} title="{{ t("You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details") }}" disabled> |
103 | 103 | {%- endif %} |
|
107 | 107 | {% if not is_backup %} |
108 | 108 | {# column indexes, See my other comment about this 'if'. #} |
109 | 109 | <td class="text-center"> |
110 | | - <select name="field_key[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" data-index=""> |
| 110 | + <select name="field_key[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="form-select" data-index=""> |
111 | 111 | <option value="none_{{ column_number }}">---</option> |
112 | 112 | <option value="primary_{{ column_number }}" title="{{ t('Primary') }}" |
113 | 113 | {{- column_meta['Key'] is defined and column_meta['Key'] == 'PRI' ? ' selected' }}> |
|
134 | 134 | </td> |
135 | 135 | {% endif %} |
136 | 136 | <td class="text-center"> |
137 | | - <input name="field_extra[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="AUTO_INCREMENT" |
| 137 | + <input name="field_extra[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" type="checkbox" value="AUTO_INCREMENT" class="form-check-input" |
138 | 138 | {{- column_meta['Extra'] is defined and column_meta['Extra']|lower == 'auto_increment' ? ' checked' }}> |
139 | 139 | {% set ci = ci + 1 %} |
140 | 140 | </td> |
141 | 141 | <td class="text-center"> |
142 | | - <textarea id="field_{{ column_number }}_{{ ci - ci_offset }}" rows="1" name="field_comments[{{ column_number }}]" maxlength="{{ max_length }}"> |
| 142 | + <textarea id="field_{{ column_number }}_{{ ci - ci_offset }}" rows="1" name="field_comments[{{ column_number }}]" maxlength="{{ max_length }}" class="form-control" style="resize: both;"> |
143 | 143 | {{- column_meta['Field'] is defined and comments_map is iterable and comments_map[column_meta['Field']] is defined ? comments_map[column_meta['Field']] -}} |
144 | 144 | </textarea> |
145 | 145 | {% set ci = ci + 1 %} |
146 | 146 | </td> |
147 | 147 | {# column virtuality #} |
148 | 148 | {% if is_virtual_columns_supported %} |
149 | 149 | <td class="text-center"> |
150 | | - <select name="field_virtuality[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="virtuality"> |
| 150 | + <select name="field_virtuality[{{ column_number }}]" id="field_{{ column_number }}_{{ ci - ci_offset }}" class="virtuality form-select"> |
151 | 151 | {% for key, value in options %} |
152 | 152 | {% set virtuality = column_meta['Extra'] is defined ? column_meta['Extra'] : null %} |
153 | 153 | {# Creating a new row on create table sends a Virtuality field #} |
|
160 | 160 | </select> |
161 | 161 |
|
162 | 162 | {% if char_editing == 'textarea' %} |
163 | | - <textarea name="field_expression[{{ column_number }}]" cols="15" class="textfield expression">{{ column_meta['Expression'] is defined ? column_meta['Expression'] }}</textarea> |
| 163 | + <textarea name="field_expression[{{ column_number }}]" cols="15" class="textfield expression form-control" style="resize: both;">{{ column_meta['Expression'] is defined ? column_meta['Expression'] }}</textarea> |
164 | 164 | {% else %} |
165 | | - <input type="text" name="field_expression[{{ column_number }}]" size="12" value="{{ column_meta['Expression'] is defined ? column_meta['Expression'] }}" placeholder="{{ t('Expression') }}" class="textfield expression"> |
| 165 | + <input type="text" name="field_expression[{{ column_number }}]" size="12" value="{{ column_meta['Expression'] is defined ? column_meta['Expression'] }}" placeholder="{{ t('Expression') }}" class="textfield expression form-control"> |
166 | 166 | {% endif %} |
167 | 167 | {% set ci = ci + 1 %} |
168 | 168 | </td> |
|
179 | 179 | {% endfor %} |
180 | 180 |
|
181 | 181 | <td class="text-center"> |
182 | | - <select id="field_{{ column_number }}_{{ ci - ci_offset }}" name="field_move_to[{{ column_number }}]" size="1" width="5em"> |
| 182 | + <select id="field_{{ column_number }}_{{ ci - ci_offset }}" name="field_move_to[{{ column_number }}]" size="1" class="form-select"> |
183 | 183 | <option value="" selected> </option> |
184 | 184 | <option value="-first"{{ current_index == 0 ? ' disabled' }}> |
185 | 185 | {{ t('first') }} |
|
197 | 197 |
|
198 | 198 | {% if relation_parameters.browserTransformationFeature is not null and relation_parameters.columnCommentsFeature is not null and browse_mime %} |
199 | 199 | <td class="text-center"> |
200 | | - <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_mimetype[{{ column_number }}]"> |
| 200 | + <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_mimetype[{{ column_number }}]" class="form-select"> |
201 | 201 | <option value=""> </option> |
202 | 202 | {% if available_mime['mimetype'] is defined and available_mime['mimetype'] is iterable %} |
203 | 203 | {% for media_type in available_mime['mimetype'] %} |
|
212 | 212 | {% set ci = ci + 1 %} |
213 | 213 | </td> |
214 | 214 | <td class="text-center"> |
215 | | - <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_transformation[{{ column_number }}]"> |
| 215 | + <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_transformation[{{ column_number }}]" class="form-select"> |
216 | 216 | <option value="" title="{{ t('None') }}"></option> |
217 | 217 | {% if available_mime['transformation'] is defined and available_mime['transformation'] is iterable %} |
218 | 218 | {% for mimekey, transform in available_mime['transformation'] %} |
|
230 | 230 | {% set ci = ci + 1 %} |
231 | 231 | </td> |
232 | 232 | <td class="text-center"> |
233 | | - <input id="field_{{ column_number }}_{{ ci - ci_offset }}" type="text" name="field_transformation_options[{{ column_number }}]" size="16" class="textfield" value=" |
| 233 | + <input id="field_{{ column_number }}_{{ ci - ci_offset }}" type="text" name="field_transformation_options[{{ column_number }}]" size="16" class="textfield form-control" value=" |
234 | 234 | {{- column_meta['Field'] is defined and mime_map[column_meta['Field']]['transformation_options'] is defined ? mime_map[column_meta['Field']]['transformation_options'] }}"> |
235 | 235 | {% set ci = ci + 1 %} |
236 | 236 | </td> |
237 | 237 | <td class="text-center"> |
238 | | - <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_input_transformation[{{ column_number }}]"> |
| 238 | + <select id="field_{{ column_number }}_{{ ci - ci_offset }}" size="1" name="field_input_transformation[{{ column_number }}]" class="form-select"> |
239 | 239 | <option value="" title="{{ t('None') }}"></option> |
240 | 240 | {% if available_mime['input_transformation'] is defined and available_mime['input_transformation'] is iterable %} |
241 | 241 | {% for mimekey, transform in available_mime['input_transformation'] %} |
|
251 | 251 | {% set ci = ci + 1 %} |
252 | 252 | </td> |
253 | 253 | <td class="text-center"> |
254 | | - <input id="field_{{ column_number }}_{{ ci - ci_offset }}" type="text" name="field_input_transformation_options[{{ column_number }}]" size="16" class="textfield" value=" |
| 254 | + <input id="field_{{ column_number }}_{{ ci - ci_offset }}" type="text" name="field_input_transformation_options[{{ column_number }}]" size="16" class="textfield form-control" value=" |
255 | 255 | {{- column_meta['Field'] is defined and mime_map[column_meta['Field']]['input_transformation_options'] is defined ? mime_map[column_meta['Field']]['input_transformation_options'] }}"> |
256 | 256 | {% set ci = ci + 1 %} |
257 | 257 | </td> |
|
0 commit comments