From e2175066272c3e4f1fc74fdb0abd8faaead064ae Mon Sep 17 00:00:00 2001 From: SBD Date: Fri, 24 Jan 2025 07:44:18 +0300 Subject: [PATCH] 0.0.56 p search res --- static/v2/js/blocks/b_search_routes.js | 17 +++++++++++++++++ templates/v2/blocks/b_search_routes.html | 2 +- templates/v2/pages/p_search_route_results.html | 4 ++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 static/v2/js/blocks/b_search_routes.js diff --git a/static/v2/js/blocks/b_search_routes.js b/static/v2/js/blocks/b_search_routes.js new file mode 100644 index 0000000..f17586a --- /dev/null +++ b/static/v2/js/blocks/b_search_routes.js @@ -0,0 +1,17 @@ +function searchRoutes (form) { + event.preventDefault() + + let formData = getFormData(form); + formData.append('owner_type', 'mover'); + + let request = new api({ + url: '/routes/find_routes/', + data: formData, + data_type: 'formData', + success: function (res) { + + } + }) + + request.ajaxRequest() +} \ No newline at end of file diff --git a/templates/v2/blocks/b_search_routes.html b/templates/v2/blocks/b_search_routes.html index 96dfadc..ecf5d94 100644 --- a/templates/v2/blocks/b_search_routes.html +++ b/templates/v2/blocks/b_search_routes.html @@ -3,7 +3,7 @@
-
+
{% include 'v2/widgets/w_select_country.html' with name='from_city' placeholder='' initial=form.initial.from_city %} diff --git a/templates/v2/pages/p_search_route_results.html b/templates/v2/pages/p_search_route_results.html index fc75ba5..d91f483 100644 --- a/templates/v2/pages/p_search_route_results.html +++ b/templates/v2/pages/p_search_route_results.html @@ -10,9 +10,13 @@ + {% endblock %} {% block content %}
{% trans "Поиск посылки" %}
{% include 'v2/blocks/b_search_routes.html' %} +
+ +
{% endblock %} \ No newline at end of file