diff --git a/static/v2/css/service/btns.css b/static/v2/css/service/btns.css index 09c24fc..b37cb15 100644 --- a/static/v2/css/service/btns.css +++ b/static/v2/css/service/btns.css @@ -70,3 +70,10 @@ cursor: pointer; } +.container_btns{ + width: 100%; + display: flex; + align-items: center; + justify-content: var(--justify); + gap: 5px; +} \ No newline at end of file diff --git a/static/v2/js/blocks/b_search_routes.js b/static/v2/js/blocks/b_search_routes.js index 41ec53e..b152a60 100644 --- a/static/v2/js/blocks/b_search_routes.js +++ b/static/v2/js/blocks/b_search_routes.js @@ -17,7 +17,7 @@ function searchRoutes (form=undefined) { data_type: 'formData', success: function (res) { if (!res.html) return; - let $parent = $('.routes_search_results')[0] + let $parent = $('.routes_search_results .routes_cont')[0] $parent.innerHTML = res.html; } diff --git a/static/v2/js/service/general.js b/static/v2/js/service/general.js new file mode 100644 index 0000000..15b247d --- /dev/null +++ b/static/v2/js/service/general.js @@ -0,0 +1,11 @@ +function templateStrToNode(template) { + let template_cont = document.createElement("template"); + template_cont.innerHTML = template; + return template_cont.content.children; +} + +function appendNodes($cont, nodes) { + while (nodes.length > 0){ + $cont.append(nodes[0]); + } +} \ No newline at end of file diff --git a/templates/tb_base.html b/templates/tb_base.html index b63fbe6..78baf70 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -103,6 +103,7 @@ function gtag_report_conversion(url) { + diff --git a/templates/v2/blocks/b_search_routes_result.html b/templates/v2/blocks/b_search_routes_result.html index bb3d718..6b6eb45 100644 --- a/templates/v2/blocks/b_search_routes_result.html +++ b/templates/v2/blocks/b_search_routes_result.html @@ -1,6 +1,10 @@ {% load static %} {% load i18n %} - -{% for route in routes %} - {% include "v2/widgets/w_route_card_for_search.html" %} -{% endfor %} \ No newline at end of file +
+ {% for route in routes %} + {% include "v2/widgets/w_route_card_for_search.html" %} + {% endfor %} +
+
+
{% trans "Показать ещё 10" %}
+
\ No newline at end of file diff --git a/templates/v2/pages/p_search_route_results.html b/templates/v2/pages/p_search_route_results.html index 06d4fd0..7516361 100644 --- a/templates/v2/pages/p_search_route_results.html +++ b/templates/v2/pages/p_search_route_results.html @@ -28,4 +28,7 @@ {% include "v2/blocks/b_search_routes_result.html" %} +
+ +
{% endblock %} \ No newline at end of file