|
1 | 1 | <form id="ajax_form" action="{{ url('/database/structure/copy-table') }}" method="post"> |
2 | 2 | {{ get_hidden_inputs(url_params) }} |
3 | 3 |
|
4 | | - <fieldset class="pma-fieldset"> |
5 | | - <strong><label for="db_name_dropdown">{% trans 'Database:' %}</label></strong> |
6 | | - <select id="db_name_dropdown" name="target_db"> |
| 4 | + <div class="mb-3"> |
| 5 | + <label for="databaseNameSelect" class="form-label">{% trans 'Database:' %}</label> |
| 6 | + <select class="form-select" id="databaseNameSelect" name="target_db"> |
7 | 7 | {% for each_db in options %} |
8 | 8 | <option value="{{ each_db.name }}"{{ each_db.is_selected ? ' selected' }}>{{ each_db.name }}</option> |
9 | 9 | {% endfor %} |
10 | 10 | </select> |
| 11 | + </div> |
| 12 | + |
| 13 | + <fieldset class="mb-3"> |
| 14 | + <legend class="col-form-label">{% trans 'Options:' %}</legend> |
| 15 | + <div class="form-check"> |
| 16 | + <input class="form-check-input" type="radio" name="what" id="whatDataRadio" value="data" checked> |
| 17 | + <label class="form-check-label" for="whatDataRadio">{% trans 'Structure and data' %}</label> |
| 18 | + </div> |
| 19 | + <div class="form-check"> |
| 20 | + <input class="form-check-input" type="radio" name="what" id="whatStructureRadio" value="structure"> |
| 21 | + <label class="form-check-label" for="whatStructureRadio">{% trans 'Structure only' %}</label> |
| 22 | + </div> |
| 23 | + <div class="form-check"> |
| 24 | + <input class="form-check-input" type="radio" name="what" id="whatDataOnlyRadio" value="dataonly"> |
| 25 | + <label class="form-check-label" for="whatDataOnlyRadio">{% trans 'Data only' %}</label> |
| 26 | + </div> |
| 27 | + </fieldset> |
11 | 28 |
|
12 | | - <br><br> |
13 | | - |
14 | | - <strong><label>{% trans 'Options:' %}</label></strong> |
15 | | - |
16 | | - <br> |
17 | | - |
18 | | - <input type="radio" id="what_structure" value="structure" name="what"> |
19 | | - <label for="what_structure">{% trans 'Structure only' %}</label> |
20 | | - |
21 | | - <br> |
22 | | - |
23 | | - <input type="radio" id="what_data" value="data" name="what" checked> |
24 | | - <label for="what_data">{% trans 'Structure and data' %}</label> |
25 | | - |
26 | | - <br> |
27 | | - |
28 | | - <input type="radio" id="what_dataonly" value="dataonly" name="what"> |
29 | | - <label for="what_dataonly">{% trans 'Data only' %}</label> |
30 | | - |
31 | | - <br><br> |
32 | | - |
33 | | - <input type="checkbox" id="checkbox_drop" value="true" name="drop_if_exists"> |
34 | | - <label for="checkbox_drop">{% trans 'Add DROP TABLE' %}</label> |
35 | | - |
36 | | - <br> |
37 | | - |
38 | | - <input type="checkbox" id="checkbox_auto_increment_cp" value="1" name="sql_auto_increment"> |
39 | | - <label for="checkbox_auto_increment_cp">{% trans 'Add AUTO INCREMENT value' %}</label> |
40 | | - |
41 | | - <br> |
42 | | - |
43 | | - <input type="checkbox" id="checkbox_constraints" value="1" name="sql_auto_increment" checked> |
44 | | - <label for="checkbox_constraints">{% trans 'Add constraints' %}</label> |
45 | | - |
46 | | - <br><br> |
47 | | - |
48 | | - <input type="checkbox" name="adjust_privileges" value="1" id="checkbox_adjust_privileges" checked> |
49 | | - <label for="checkbox_adjust_privileges"> |
| 29 | + <div class="form-check"> |
| 30 | + <input class="form-check-input" type="checkbox" value="true" name="drop_if_exists" id="addDropTableCheckbox"> |
| 31 | + <label class="form-check-label" for="addDropTableCheckbox">{% trans 'Add DROP TABLE' %}</label> |
| 32 | + </div> |
| 33 | + <div class="form-check"> |
| 34 | + <input class="form-check-input" type="checkbox" value="1" name="sql_auto_increment" id="addAutoIncrementCheckbox"> |
| 35 | + <label class="form-check-label" for="addAutoIncrementCheckbox">{% trans 'Add AUTO INCREMENT value' %}</label> |
| 36 | + </div> |
| 37 | + <div class="form-check mb-3"> |
| 38 | + <input class="form-check-input" type="checkbox" value="1" name="add_constraints" id="addConstraintsCheckbox" checked> |
| 39 | + <label class="form-check-label" for="addConstraintsCheckbox">{% trans 'Add constraints' %}</label> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div class="form-check"> |
| 43 | + <input class="form-check-input" type="checkbox" value="1" name="adjust_privileges" id="adjustPrivilegesCheckbox"> |
| 44 | + <label class="form-check-label" for="adjustPrivilegesCheckbox"> |
50 | 45 | {% trans 'Adjust privileges' %} |
51 | 46 | {{ show_docu('faq', 'faq6-39') }} |
52 | 47 | </label> |
53 | | - </fieldset> |
| 48 | + </div> |
54 | 49 | </form> |
0 commit comments