{% set sql_textarea_id = 'table-sql' %}
{% include "query_form.html" %}
{% if results %}
{% include "results_multi.html" %}
{% elif result and result.kind != 'error' %}
{% set show_edit = allow_edit and result.keys %}
{% set show_detail = allow_detail and result.keys %}
{% set show_bulk = allow_bulk and result.keys %}
{% if result.kind == 'rows' and result.rows %}
{% if show_bulk %}
{% endif %}
{% if paginate %}
{% include "pagination.html" %}
{% endif %}
{% endif %}
{% endif %}
{% include "query_modals.html" %}
{% endblock %}