From 12ff48565a797b2ec3e27d835d71bd5f2640ecc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Sun, 13 Mar 2022 15:09:17 -0300 Subject: [PATCH] Convert Results Operations to Bootstrap's card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- templates/display/results/table.twig | 80 ++++++++++++++-------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/templates/display/results/table.twig b/templates/display/results/table.twig index d93588616e42..bbd771f3f745 100644 --- a/templates/display/results/table.twig +++ b/templates/display/results/table.twig @@ -251,54 +251,56 @@ {{ navigation_html }} {% if operations is not empty %} -
- {% trans 'Query results operations' %} - - {% if operations.has_print_link %} - - - {{ link_or_button( - '#', - null, - get_icon('b_insrow', 'Copy to clipboard'|trans, true), - {'id': 'copyToClipBoard', 'class': 'btn'} - ) }} - {% endif %} +
+
{% trans 'Query results operations' %}
- {% if not operations.has_procedure %} - {% if operations.has_export_link %} - {{ link_or_button( - url('/table/export'), - operations.url_params, - get_icon('b_tblexport', 'Export'|trans, true), - {'class': 'btn'} - ) }} +
+ {% if operations.has_print_link %} + {{ link_or_button( - url('/table/chart'), - operations.url_params, - get_icon('b_chart', 'Display chart'|trans, true), - {'class': 'btn'} + '#', + null, + get_icon('b_insrow', 'Copy to clipboard'|trans, true), + {'id': 'copyToClipBoard', 'class': 'btn'} ) }} + {% endif %} + + {% if not operations.has_procedure %} + {% if operations.has_export_link %} + {{ link_or_button( + url('/table/export'), + operations.url_params, + get_icon('b_tblexport', 'Export'|trans, true), + {'class': 'btn'} + ) }} - {% if operations.has_geometry %} {{ link_or_button( - url('/table/gis-visualization'), + url('/table/chart'), operations.url_params, - get_icon('b_globe', 'Visualize GIS data'|trans, true), + get_icon('b_chart', 'Display chart'|trans, true), {'class': 'btn'} ) }} + + {% if operations.has_geometry %} + {{ link_or_button( + url('/table/gis-visualization'), + operations.url_params, + get_icon('b_globe', 'Visualize GIS data'|trans, true), + {'class': 'btn'} + ) }} + {% endif %} {% endif %} - {% endif %} - - {{ link_or_button( - url('/view/create'), - {'db': db, 'table': table, 'sql_query': sql_query, 'printview': true}, - get_icon('b_view_add', 'Create view'|trans, true), - {'class': 'btn create_view ajax'} - ) }} - - {% endif %} -
+ + {{ link_or_button( + url('/view/create'), + {'db': db, 'table': table, 'sql_query': sql_query, 'printview': true}, + get_icon('b_view_add', 'Create view'|trans, true), + {'class': 'btn create_view ajax'} + ) }} + + {% endif %} + + {% endif %}