Files
sam-kd/DBcontrol/templates/database/structure/copy_form.twig
hskwon aca1767eb9 초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경
- DB 연결 하드코딩 → .env 기반으로 변경
- MySQL strict mode DATE 오류 수정
2025-12-10 20:14:31 +09:00

55 lines
1.8 KiB
Twig

<form id="ajax_form" action="{{ url('/database/structure/copy-table') }}" method="post">
{{ get_hidden_inputs(url_params) }}
<fieldset>
<strong><label for="db_name_dropdown">{% trans 'Database:' %}</label></strong>
<select id="db_name_dropdown" name="target_db">
{% for each_db in options %}
<option value="{{ each_db.name }}"{{ each_db.is_selected ? ' selected' }}>{{ each_db.name }}</option>
{% endfor %}
</select>
<br><br>
<strong><label>{% trans 'Options:' %}</label></strong>
<br>
<input type="radio" id="what_structure" value="structure" name="what">
<label for="what_structure">{% trans 'Structure only' %}</label>
<br>
<input type="radio" id="what_data" value="data" name="what" checked>
<label for="what_data">{% trans 'Structure and data' %}</label>
<br>
<input type="radio" id="what_dataonly" value="dataonly" name="what">
<label for="what_dataonly">{% trans 'Data only' %}</label>
<br><br>
<input type="checkbox" id="checkbox_drop" value="true" name="drop_if_exists">
<label for="checkbox_drop">{% trans 'Add DROP TABLE' %}</label>
<br>
<input type="checkbox" id="checkbox_auto_increment_cp" value="1" name="sql_auto_increment">
<label for="checkbox_auto_increment_cp">{% trans 'Add AUTO INCREMENT value' %}</label>
<br>
<input type="checkbox" id="checkbox_constraints" value="1" name="sql_auto_increment" checked>
<label for="checkbox_constraints">{% trans 'Add constraints' %}</label>
<br><br>
<input type="checkbox" name="adjust_privileges" value="1" id="checkbox_adjust_privileges" checked>
<label for="checkbox_adjust_privileges">
{% trans 'Adjust privileges' %}
{{ show_docu('faq', 'faq6-39') }}
</label>
</fieldset>
</form>