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>
This commit is contained in:
William Desportes 2022-10-26 16:23:00 +02:00
parent 933db9fc08
commit 578b18b43f
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -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') }}