0.0.159 routes

This commit is contained in:
SBD
2025-02-17 16:13:53 +03:00
parent b4b79e185e
commit 8119955f52
6 changed files with 31 additions and 5 deletions

View File

@@ -70,3 +70,10 @@
cursor: pointer;
}
.container_btns{
width: 100%;
display: flex;
align-items: center;
justify-content: var(--justify);
gap: 5px;
}

View File

@@ -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;
}

View File

@@ -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]);
}
}

View File

@@ -103,6 +103,7 @@ function gtag_report_conversion(url) {
<script src="{% static "js/ion.rangeSlider.min.js" %}"></script>
<script src="{% static "v2/js/forms.js" %}"></script>
<script src="{% static "v2/js/service/modal.js" %}"></script>
<script src="{% static "v2/js/service/general.js" %}"></script>
<link rel="stylesheet" href="{% static "css/ion.rangeSlider.min.css" %}">

View File

@@ -1,6 +1,10 @@
{% load static %}
{% load i18n %}
{% for route in routes %}
{% include "v2/widgets/w_route_card_for_search.html" %}
{% endfor %}
<div class="routes_cont">
{% for route in routes %}
{% include "v2/widgets/w_route_card_for_search.html" %}
{% endfor %}
</div>
<div class="container_btns" style="--justify: center;">
<div class="primary_btn" style="--padding: 19px 34px 21px 34px">{% trans "Показать ещё 10" %}</div>
</div>

View File

@@ -28,4 +28,7 @@
{% include "v2/blocks/b_search_routes_result.html" %}
</div>
</div>
<div class="didnt_found_anth">
</div>
{% endblock %}