Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2022-10-26 17:23:00 +0300
committerWilliam Desportes <williamdes@wdes.fr>2022-10-26 17:23:00 +0300
commit578b18b43fd5a7c2ea384da4668f1e9745e2ea95 (patch)
tree2d2943cebc384201da67c0f0e517ecd16c76f3d6 /templates
parent933db9fc087a4e20de86330959a0fc4b34883784 (diff)
Fix add index on new table form has duplicate go buttons in the modal
Go to create a new table then add an index on a column you want to create, see the duplicate buttons in the footer Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'templates')
-rw-r--r--templates/table/index_form.twig3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/table/index_form.twig b/templates/table/index_form.twig
index ac79ee9aed..cb18d52e54 100644
--- a/templates/table/index_form.twig
+++ b/templates/table/index_form.twig
@@ -239,10 +239,13 @@
</div>
</div>
</fieldset>
+ {# The modal already has buttons to execute and preview SQL #}
+ {%- if not create_edit_table -%}
<fieldset class="pma-fieldset tblFooters">
<button class="btn btn-primary" type="submit">{% trans 'Go' %}</button>
<button class="btn btn-secondary" type="submit" id="preview_index_frm">{% trans 'Preview SQL' %}</button>
</fieldset>
+ {%- endif -%}
</form>
{% if is_from_nav %}
{{ include('modals/preview_sql_modal.twig') }}