diff --git a/templates/table/search/fields_table.twig b/templates/table/search/fields_table.twig index df625ec08563..8b749399f9fa 100644 --- a/templates/table/search/fields_table.twig +++ b/templates/table/search/fields_table.twig @@ -1,7 +1,16 @@ - {% include 'table/search/table_header.twig' with { - 'geom_column_flag': geom_column_flag - } only %} + + + {% if geom_column_flag %} + + {% endif %} + + + + + + + {% if search_type == 'zoom' %} {% include 'table/search/rows_zoom.twig' with { diff --git a/templates/table/search/options.twig b/templates/table/search/options.twig deleted file mode 100644 index 99ae98512624..000000000000 --- a/templates/table/search/options.twig +++ /dev/null @@ -1,67 +0,0 @@ -{{ Util_getDivForSliderEffect('searchoptions', 'Options'|trans) }} - -{# Displays columns select list for selecting distinct columns in the search #} -
- - {% trans 'Select columns (at least one):' %} - - - - -
- -{# Displays input box for custom 'Where' clause to be used in the search #} -
- - {% trans 'Or' %} - {% trans 'Add search conditions (body of the "where" clause):' %} - - {{ Util_showMySQLDocu('Functions') }} - -
- -{# Displays option of changing default number of rows displayed per page #} -
- {% trans 'Number of rows per page' %} - -
- -{# Displays option for ordering search results by a column value (Asc or Desc) #} -
- {% trans 'Display order:' %} - - - {{ Util_getRadioFields( - 'order', - { - 'ASC': 'Ascending'|trans, - 'DESC': 'Descending'|trans - }, - 'ASC', - false, - true, - 'formelement' - ) }} - -
-
diff --git a/templates/table/search/options_zoom.twig b/templates/table/search/options_zoom.twig deleted file mode 100644 index 328eb4aea3e9..000000000000 --- a/templates/table/search/options_zoom.twig +++ /dev/null @@ -1,43 +0,0 @@ -
{% trans 'Function' %}{% trans 'Column' %}{% trans 'Type' %}{% trans 'Collation' %}{% trans 'Operator' %}{% trans 'Value' %}
- {# Select options for data label #} - - - - - {# Inputbox for changing default maximum rows to plot #} - - - - -
- - - -
- - - -
diff --git a/templates/table/search/search_and_replace.twig b/templates/table/search/search_and_replace.twig deleted file mode 100644 index 8237dd599edd..000000000000 --- a/templates/table/search/search_and_replace.twig +++ /dev/null @@ -1,25 +0,0 @@ -{% trans 'Find:' %} - -{% trans 'Replace with:' %} - - -{% trans 'Column:' %} - - -{% include 'checkbox.twig' with { - 'html_field_id': 'useRegex', - 'html_field_name': 'useRegex', - 'label': 'Use regular expression'|trans, - 'checked': false, - 'onclick': false -} only %} diff --git a/templates/table/search/selection_form.twig b/templates/table/search/selection_form.twig index 38061f7b3331..ab8cc25bb48b 100644 --- a/templates/table/search/selection_form.twig +++ b/templates/table/search/selection_form.twig @@ -21,12 +21,49 @@ 'keys' : keys, 'criteria_column_names': criteria_column_names, 'criteria_column_types': criteria_column_types - } only %} - {% include 'table/search/options_zoom.twig' with { - 'data_label': data_label, - 'column_names': column_names, - 'max_plot_limit': max_plot_limit - } only %} + } only %} + {# Select options for data label #} + + + + + {# Inputbox for changing default maximum rows to plot #} + + + + +
+ + + +
+ + + +
{% elseif search_type == 'normal' %} @@ -57,10 +94,73 @@
- {% include 'table/search/options.twig' with { - 'column_names': column_names, - 'max_rows': max_rows - } only %} + {{ Util_getDivForSliderEffect('searchoptions', 'Options'|trans) }} + + {# Displays columns select list for selecting distinct columns in the search #} +
+ + {% trans 'Select columns (at least one):' %} + + + + +
+ + {# Displays input box for custom 'Where' clause to be used in the search #} +
+ + {% trans 'Or' %} + {% trans 'Add search conditions (body of the "where" clause):' %} + + {{ Util_showMySQLDocu('Functions') }} + +
+ + {# Displays option of changing default number of rows displayed per page #} +
+ {% trans 'Number of rows per page' %} + +
+ + {# Displays option for ordering search results by a column value (Asc or Desc) #} +
+ {% trans 'Display order:' %} + + + {{ Util_getRadioFields( + 'order', + { + 'ASC': 'Ascending'|trans, + 'DESC': 'Descending'|trans + }, + 'ASC', + false, + true, + 'formelement' + ) }} + +
+
{% elseif search_type == 'replace' %} {% include 'table/search/form_tag.twig' with { @@ -74,12 +174,30 @@
{% trans 'Find and replace' %} - - {% include 'table/search/search_and_replace.twig' with { - 'column_names': column_names, - 'column_types': column_types, - 'sql_types': sql_types, - 'types': types + {% trans 'Find:' %} + + {% trans 'Replace with:' %} + + + {% trans 'Column:' %} + + + {% include 'checkbox.twig' with { + 'html_field_id': 'useRegex', + 'html_field_name': 'useRegex', + 'label': 'Use regular expression'|trans, + 'checked': false, + 'onclick': false } only %}
diff --git a/templates/table/search/table_header.twig b/templates/table/search/table_header.twig deleted file mode 100644 index 4093f5bfc50f..000000000000 --- a/templates/table/search/table_header.twig +++ /dev/null @@ -1,12 +0,0 @@ - - - {% if geom_column_flag %} - {% trans 'Function' %} - {% endif %} - {% trans 'Column' %} - {% trans 'Type' %} - {% trans 'Collation' %} - {% trans 'Operator' %} - {% trans 'Value' %} - -