Initial commit
This commit is contained in:
25
pma/templates/table/structure/primary.twig
Normal file
25
pma/templates/table/structure/primary.twig
Normal file
@ -0,0 +1,25 @@
|
||||
<form action="{{ url('/table/structure/primary') }}" method="post">
|
||||
{{ get_hidden_inputs({'db': db, 'table': table, 'selected': selected}) }}
|
||||
|
||||
<fieldset class="confirmation">
|
||||
<legend>
|
||||
{% trans 'Do you really want to execute the following query?' %}
|
||||
</legend>
|
||||
|
||||
<code>
|
||||
ALTER TABLE {{ backquote(table) }}<br>
|
||||
DROP PRIMARY KEY,<br>
|
||||
ADD PRIMARY KEY(<br>
|
||||
{% for field in selected %}
|
||||
{{ backquote(field) }}
|
||||
{%- if not loop.last %},{% endif %}<br>
|
||||
{% endfor %}
|
||||
);
|
||||
</code>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="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>
|
Reference in New Issue
Block a user