diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 3069713..517e589 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -13,7 +13,10 @@ function filters_func_find_route_main (el){ // enctype: 'json', data: formData, success: function(data){ - + document.querySelector(".block-finded-routes").innerHTML = data.html }, + errors: function (data){ + + } }); } \ No newline at end of file diff --git a/templates/blocks/b_search_routes.html b/templates/blocks/b_search_routes.html index 67f7670..791e3fd 100644 --- a/templates/blocks/b_search_routes.html +++ b/templates/blocks/b_search_routes.html @@ -1,9 +1,7 @@ {% load static %} -
- {% for route in routes %} - {% include "widgets/w_carrier_card.html" %} - {% endfor %} +{% for route in routes %} + {% include "widgets/w_carrier_card.html" %} +{% endfor %} -
\ No newline at end of file diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index d12e4d6..7399118 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -205,8 +205,9 @@ - - {% include "blocks/b_search_routes.html" %} +
+ {% include "blocks/b_search_routes.html" %} +