gl-website-deployer/admin/phpMyAdmin/templates/table/structure/primary.twig
2024-11-23 20:45:29 +01:00

26 lines
931 B
Twig

<form action="{{ url('/table/structure/primary') }}" method="post">
{{ get_hidden_inputs({'db': db, 'table': table, 'selected': selected}) }}
<fieldset class="pma-fieldset confirmation">
<legend>
{% trans 'Do you really want to execute the following query?' %}
</legend>
<code>
ALTER TABLE {{ backquote(table) }}<br>
&nbsp;&nbsp;DROP PRIMARY KEY,<br>
&nbsp;&nbsp;&nbsp;ADD PRIMARY KEY(<br>
{% for field in selected %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ backquote(field) }}
{%- if not loop.last %},{% endif %}<br>
{% endfor %}
&nbsp;&nbsp;&nbsp;);
</code>
</fieldset>
<fieldset class="pma-fieldset tblFooters">
<input id="buttonYes" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
<input id="buttonNo" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'No' %}">
</fieldset>
</form>