diff --git a/ckanext/odsh/templates/snippets/search_form.html b/ckanext/odsh/templates/snippets/search_form.html index 09b45a2367039960fc17adf5ae164d46366cf7aa..78269118494ef5de1419b634c7d8a5aa739cb76f 100644 --- a/ckanext/odsh/templates/snippets/search_form.html +++ b/ckanext/odsh/templates/snippets/search_form.html @@ -54,12 +54,12 @@ {% block search_sortby %} {% if sorting %} - <div class="form-select control-group control-order-by"> - <select id="field-order-by" name="sort" aria-label="{{sorting_label_prefix}} …"> + <div class="form-group control-order-by"> + <select id="field-order-by" name="sort" aria-label="{{ sorting_label_prefix }} …"> {% for label, value in sorting %} {% if label and value %} - <option value="{{ value }}" {% if sorting_selected==value %} selected="selected" {% endif %}> - {{sorting_label_prefix}} {{ label }}</option> + <option value="{{ value }}"{% if sorting_selected==value %} selected="selected" {% endif %}> + {{ sorting_label_prefix }} {{ label }}</option> {% endif %} {% endfor %} </select>