Merge remote-tracking branch 'origin/main'
This commit is contained in:
1
static/css/ion.rangeSlider.min.css
vendored
Normal file
1
static/css/ion.rangeSlider.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -917,6 +917,11 @@ form.new_route>div{
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
form.new_route>div.range-slider{
|
||||||
|
margin-bottom: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
form.new_route{
|
form.new_route{
|
||||||
width:100%;
|
width:100%;
|
||||||
@@ -942,4 +947,54 @@ form.new_route{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*Range slider end*/
|
/*Range slider end*/
|
||||||
|
|
||||||
|
/*autocomplete-wrapper START*/
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.control-label {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-wrapper {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
}
|
||||||
|
.autocomplete-results {
|
||||||
|
position: absolute;
|
||||||
|
background: white;
|
||||||
|
z-index: 1;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
border: solid 1px #ddd;
|
||||||
|
border-top-width: 0;
|
||||||
|
border-bottom-color: #ccc;
|
||||||
|
box-shadow:
|
||||||
|
0 5px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-result {
|
||||||
|
padding: 12px 15px;
|
||||||
|
border-bottom: solid 1px #eee;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-result:last-child {
|
||||||
|
border-bottom-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-location {
|
||||||
|
opacity: .8;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.autocomplete-results[data-highlight='#{$i}'] > :nth-child(#{$iPlus}) {
|
||||||
|
color: white;
|
||||||
|
background: #26C9FF;
|
||||||
|
border-bottom-color: #26C9FF;
|
||||||
|
outline: solid 1px #26C9FF;
|
||||||
|
}
|
||||||
|
/*autocomplete-wrapper END*/
|
||||||
147
static/js/autocomplete.js
Normal file
147
static/js/autocomplete.js
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
// var options = {
|
||||||
|
// shouldSort: true,
|
||||||
|
// threshold: 0.4,
|
||||||
|
// maxPatternLength: 32,
|
||||||
|
// keys: [{
|
||||||
|
// name: 'iata',
|
||||||
|
// weight: 0.5
|
||||||
|
// }, {
|
||||||
|
// name: 'name',
|
||||||
|
// weight: 0.3
|
||||||
|
// }, {
|
||||||
|
// name: 'city',
|
||||||
|
// weight: 0.2
|
||||||
|
// }]
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// var fuse = new Fuse(airports, options)
|
||||||
|
|
||||||
|
function searchTown(el){
|
||||||
|
let form = el.form;
|
||||||
|
let formData = new FormData(form);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
|
url: '/ru/routes/create_route/',
|
||||||
|
type: "POST",
|
||||||
|
// async: true,
|
||||||
|
cache: false,
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
// enctype: 'json',
|
||||||
|
data: formData,
|
||||||
|
success: function(data){
|
||||||
|
console.log('data received')
|
||||||
|
// location.href = '/profile'
|
||||||
|
document.querySelector(".info_profile").innerHTML = data.html
|
||||||
|
},
|
||||||
|
error: function (data, exception){
|
||||||
|
document.querySelector(".button_register").innerHTML = data.responseJSON.html
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var ac = $('#id_from_country')
|
||||||
|
.on('click', function(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
})
|
||||||
|
.on('focus keyup', search)
|
||||||
|
.on('keydown', onKeyDown);
|
||||||
|
|
||||||
|
var wrap = $('<div>')
|
||||||
|
.addClass('autocomplete-wrapper')
|
||||||
|
.insertBefore(ac)
|
||||||
|
.append(ac);
|
||||||
|
|
||||||
|
var list = $('<div>')
|
||||||
|
.addClass('autocomplete-results')
|
||||||
|
.on('click', '.autocomplete-result', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
selectIndex($(this).data('index'));
|
||||||
|
})
|
||||||
|
.appendTo(wrap);
|
||||||
|
|
||||||
|
$(document)
|
||||||
|
.on('mouseover', '.autocomplete-result', function(e) {
|
||||||
|
var index = parseInt($(this).data('index'), 10);
|
||||||
|
if (!isNaN(index)) {
|
||||||
|
list.attr('data-highlight', index);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.on('click', clearResults);
|
||||||
|
|
||||||
|
function clearResults() {
|
||||||
|
results = [];
|
||||||
|
numResults = 0;
|
||||||
|
list.empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectIndex(index) {
|
||||||
|
if (results.length >= index + 1) {
|
||||||
|
ac.val(results[index].iata);
|
||||||
|
clearResults();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var results = [];
|
||||||
|
var numResults = 0;
|
||||||
|
var selectedIndex = -1;
|
||||||
|
|
||||||
|
function search(e) {
|
||||||
|
if (e.which === 38 || e.which === 13 || e.which === 40) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ac.val().length > 0) {
|
||||||
|
// results = _.take(fuse.search(ac.val()), 7);
|
||||||
|
// numResults = results.length;
|
||||||
|
|
||||||
|
results = searchTown.success(data);
|
||||||
|
|
||||||
|
var divs = results.map(function(r, i) {
|
||||||
|
return '<div class="autocomplete-result" data-index="'+ i +'">'
|
||||||
|
+ '<div><b>'+ r.iata +'</b> - '+ r.name +'</div>'
|
||||||
|
+ '<div class="autocomplete-location">'+ r.city +', '+ r.country +'</div>'
|
||||||
|
+ '</div>';
|
||||||
|
});
|
||||||
|
|
||||||
|
selectedIndex = -1;
|
||||||
|
list.html(divs.join(''))
|
||||||
|
.attr('data-highlight', selectedIndex);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
numResults = 0;
|
||||||
|
list.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onKeyDown(e) {
|
||||||
|
switch(e.which) {
|
||||||
|
case 38: // up
|
||||||
|
selectedIndex--;
|
||||||
|
if (selectedIndex <= -1) {
|
||||||
|
selectedIndex = -1;
|
||||||
|
}
|
||||||
|
list.attr('data-highlight', selectedIndex);
|
||||||
|
break;
|
||||||
|
case 13: // enter
|
||||||
|
selectIndex(selectedIndex);
|
||||||
|
break;
|
||||||
|
case 9: // enter
|
||||||
|
selectIndex(selectedIndex);
|
||||||
|
e.stopPropagation();
|
||||||
|
return;
|
||||||
|
case 40: // down
|
||||||
|
selectedIndex++;
|
||||||
|
if (selectedIndex >= numResults) {
|
||||||
|
selectedIndex = numResults-1;
|
||||||
|
}
|
||||||
|
list.attr('data-highlight', selectedIndex);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default: return; // exit this handler for other keys
|
||||||
|
}
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault(); // prevent the default action (scroll / move caret)
|
||||||
|
}
|
||||||
2
static/js/ion.rangeSlider.min.js
vendored
Normal file
2
static/js/ion.rangeSlider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -14,6 +14,34 @@ function createRoute(){
|
|||||||
console.log('data received')
|
console.log('data received')
|
||||||
// location.href = '/profile'
|
// location.href = '/profile'
|
||||||
document.querySelector(".info_profile").innerHTML = data.html
|
document.querySelector(".info_profile").innerHTML = data.html
|
||||||
|
|
||||||
|
$(document).ready(function (e){
|
||||||
|
$('#id_weight').ionRangeSlider({
|
||||||
|
skin: "round",
|
||||||
|
type: "single",
|
||||||
|
min: 0,
|
||||||
|
max: 1000,
|
||||||
|
from: 500,
|
||||||
|
step: 1,
|
||||||
|
grid: true,
|
||||||
|
grid_num: 5,
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
//get dynamic value
|
||||||
|
// let fromCountry = document.getElementById('id_from_country');
|
||||||
|
// let toCounytry = document.getElementById('id_to_country')
|
||||||
|
//
|
||||||
|
// toCounytry.oninput = function (){
|
||||||
|
// console.log(toCounytry.value)
|
||||||
|
// }
|
||||||
|
// fromCountry.oninput = function (){
|
||||||
|
// console.log(fromCountry.value)
|
||||||
|
//
|
||||||
|
// };
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
52
static/js/rangeSlider.js
Normal file
52
static/js/rangeSlider.js
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function (e){
|
||||||
|
$('#id_weight').ionRangeSlider({
|
||||||
|
skin: "round",
|
||||||
|
type: "single",
|
||||||
|
min: 0,
|
||||||
|
max: 1000,
|
||||||
|
from: 0,
|
||||||
|
step: 1,
|
||||||
|
grid: true,
|
||||||
|
grid_num: 5,
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// var RangeSlider = function () {
|
||||||
|
//
|
||||||
|
// // Private functions
|
||||||
|
// var demos = function () {
|
||||||
|
// // basic demo
|
||||||
|
// $('#id_weight').ionRangeSlider({
|
||||||
|
// skin: "round",
|
||||||
|
// type: "single",
|
||||||
|
// min: 0,
|
||||||
|
// max: 1000,
|
||||||
|
// from: 0,
|
||||||
|
// step: 1,
|
||||||
|
// grid: true,
|
||||||
|
// grid_num: 5,
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return {
|
||||||
|
// // public functions
|
||||||
|
// init: function() {
|
||||||
|
// demos();
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
// }();
|
||||||
|
//
|
||||||
|
// jQuery(document).ready(function() {
|
||||||
|
// RangeSlider.init();
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -16,11 +16,13 @@ function sendRoute(el){
|
|||||||
success: function(data){
|
success: function(data){
|
||||||
console.log('data received')
|
console.log('data received')
|
||||||
// location.href = '/profile'
|
// location.href = '/profile'
|
||||||
// document.querySelector(".info_profile").innerHTML = data.html
|
document.querySelector(".info_profile").innerHTML = data.html
|
||||||
},
|
},
|
||||||
error: function (data, exception){
|
error: function (data, exception){
|
||||||
document.querySelector(".new_route").innerHTML = data.responseJSON.html
|
document.querySelector(".info_profile").innerHTML = data.responseJSON.html
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="{% static 'css/ion.rangeSlider.min.css' %}">
|
||||||
|
|
||||||
|
|
||||||
<form class = "new_route" name="new_route" method="post">
|
<form class = "new_route" name="new_route" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div>
|
<div>
|
||||||
@@ -11,6 +14,9 @@
|
|||||||
<option value="{{ item.0 }}"{% if form.fields.type_transport.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
<option value="{{ item.0 }}"{% if form.fields.type_transport.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
{% if form.errors and form.errors.type_transport %}
|
||||||
|
<span>{{ form.errors.type_transport }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@@ -18,10 +24,16 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="id_departure_DT">{{ form.fields.departure_DT.label }}</label>
|
<label for="id_departure_DT">{{ form.fields.departure_DT.label }}</label>
|
||||||
<input type="datetime-local" name="departure_DT"{% if form.fields.departure_DT.required %} required{% endif %} id="id_departure_DT">
|
<input type="datetime-local" name="departure_DT"{% if form.fields.departure_DT.required %} required{% endif %} id="id_departure_DT">
|
||||||
|
{% if form.errors and form.errors.departure_DT %}
|
||||||
|
<span>{{ form.errors.departure_DT }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_arrival_DT">{{ form.fields.arrival_DT.label }}</label>
|
<label for="id_arrival_DT">{{ form.fields.arrival_DT.label }}</label>
|
||||||
<input type="datetime-local" name="arrival_DT"{% if form.fields.arrival_DT.required %} required{% endif %} id="id_arrival_DT">
|
<input type="datetime-local" name="arrival_DT"{% if form.fields.arrival_DT.required %} required{% endif %} id="id_arrival_DT">
|
||||||
|
{% if form.errors and form.errors.arrival_DT %}
|
||||||
|
<span>{{ form.errors.arrival_DT }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@@ -29,10 +41,16 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="id_from_country">{{ form.fields.from_country.label }}</label>
|
<label for="id_from_country">{{ form.fields.from_country.label }}</label>
|
||||||
<input type="text" name="from_country"{% if form.fields.from_country.required %} required{% endif %} id="id_from_country">
|
<input type="text" name="from_country"{% if form.fields.from_country.required %} required{% endif %} id="id_from_country">
|
||||||
|
{% if form.errors and form.errors.from_country %}
|
||||||
|
<span>{{ form.errors.from_country }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_to_country">{{ form.fields.to_country.label }}</label>
|
<label for="id_to_country">{{ form.fields.to_country.label }}</label>
|
||||||
<input type="text" name="to_country"{% if form.fields.to_country.required %} required{% endif %} id="id_to_country">
|
<input type="text" name="to_country"{% if form.fields.to_country.required %} required{% endif %} id="id_to_country">
|
||||||
|
{% if form.errors and form.errors.to_country %}
|
||||||
|
<span>{{ form.errors.to_country }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# <div>#}
|
{# <div>#}
|
||||||
@@ -51,6 +69,9 @@
|
|||||||
<option value="{{ item.0 }}"{% if form.fields.type_transport.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
<option value="{{ item.0 }}"{% if form.fields.type_transport.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
{% if form.errors and form.errors.from_place %}
|
||||||
|
<span>{{ form.errors.from_place }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_to_place">{{ form.fields.to_place.label }}</label>
|
<label for="id_to_place">{{ form.fields.to_place.label }}</label>
|
||||||
@@ -59,6 +80,9 @@
|
|||||||
<option value="{{ item.0 }}"{% if form.fields.to_place.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
<option value="{{ item.0 }}"{% if form.fields.to_place.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
{% if form.errors and form.errors.to_place %}
|
||||||
|
<span>{{ form.errors.to_place }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -73,13 +97,19 @@
|
|||||||
<option value="{{ item.0 }}"{% if form.fields.cargo_type.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
<option value="{{ item.0 }}"{% if form.fields.cargo_type.initial == item.0 %} selected="selected"{% endif %}>{{ item.1 }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
{% if form.errors and form.errors.cargo_type %}
|
||||||
|
<span>{{ form.errors.cargo_type }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div>
|
<div class="range-slider">
|
||||||
<label for="id_weight">{{ form.fields.weight.label }}</label>
|
<label for="id_weight">{{ form.fields.weight.label }}</label>
|
||||||
<input type="range" name="weight"{% if form.fields.weight.required %} required{% endif %} value="" id="id_weight">
|
<input type="text" id="id_weight"{% if form.fields.weight.required %} required{% endif %} name="weight" value="" />
|
||||||
|
{% if form.errors and form.errors.weight %}
|
||||||
|
<span>{{ form.errors.weight }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@@ -87,10 +117,16 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="id_phone">{{ form.fields.phone.label }}</label>
|
<label for="id_phone">{{ form.fields.phone.label }}</label>
|
||||||
<input type="text" name="phone"{% if form.fields.phone.required %} required{% endif %} id="id_phone">
|
<input type="text" name="phone"{% if form.fields.phone.required %} required{% endif %} id="id_phone">
|
||||||
|
{% if form.errors and form.errors.phone %}
|
||||||
|
<span>{{ form.errors.phone }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_extra_phone">{{ form.fields.extra_phone.label }}</label>
|
<label for="id_extra_phone">{{ form.fields.extra_phone.label }}</label>
|
||||||
<input type="text" name="extra_phone" id="id_extra_phone">
|
<input type="text" name="extra_phone" id="id_extra_phone">
|
||||||
|
{% if form.errors and form.errors.extra_phone %}
|
||||||
|
<span>{{ form.errors.extra_phone }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@@ -98,9 +134,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="id_receive_msg_by_email">{{ form.fields.receive_msg_by_email.label }}</label>
|
<label for="id_receive_msg_by_email">{{ form.fields.receive_msg_by_email.label }}</label>
|
||||||
<input type="checkbox" name="receive_msg_by_email" id="id_receive_msg_by_email">
|
<input type="checkbox" name="receive_msg_by_email" id="id_receive_msg_by_email">
|
||||||
|
{% if form.errors and form.errors.receive_msg_by_email %}
|
||||||
|
<span>{{ form.errors.receive_msg_by_email }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="button_register">
|
<div class="button_register">
|
||||||
<button id="registration" onclick="sendRoute(this)"> Разместить объявления </button>
|
<button id="registration" onclick="sendRoute(this)"> Разместить объявления </button>
|
||||||
</div>
|
</div>
|
||||||
<script src='{% static "js/sendNewRoute.js" %}'></script>
|
|
||||||
</form>
|
</form>
|
||||||
@@ -3,7 +3,10 @@
|
|||||||
<script src='{% static "js/registration.js" %}'></script>
|
<script src='{% static "js/registration.js" %}'></script>
|
||||||
<script src='{% static "js/authorization.js" %}'></script>
|
<script src='{% static "js/authorization.js" %}'></script>
|
||||||
<script src='{% static "js/newRoute.js" %}'></script>
|
<script src='{% static "js/newRoute.js" %}'></script>
|
||||||
<script src='{% static "js/sendNewRoute.js" %}'></script>
|
<script src='{% static "js/sendRoute.js" %}'></script>
|
||||||
<script src=" https://cdn.jsdelivr.net/npm/ion-rangeslider@2.3.1/js/ion.rangeSlider.min.js "></script>
|
|
||||||
<link href=" https://cdn.jsdelivr.net/npm/ion-rangeslider@2.3.1/css/ion.rangeSlider.min.css " rel="stylesheet">
|
<script src='{% static "js/rangeSlider.js" %}'></script>
|
||||||
|
<script src='{% static "js/sendRoute.js" %}'></script>
|
||||||
|
<script src='{% static "js/ion.rangeSlider.min.js" %}'></script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
<script src='{% static "js/authorization.js" %}'></script>
|
<script src='{% static "js/authorization.js" %}'></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{% extends 'tb_base.html' %}
|
{% extends 'tb_base.html' %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
<script src='{% static "js/registration.js" %}'></script>
|
<script src='{% static "js/registration.js" %}'></script>
|
||||||
|
|||||||
@@ -3,7 +3,16 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
<script src='{% static "js/newRoute.js" %}'></script>
|
<script src='{% static "js/newRoute.js" %}'></script>
|
||||||
|
<script src='{% static "js/rangeSlider.js" %}'></script>
|
||||||
|
<script src='{% static "js/sendRoute.js" %}'></script>
|
||||||
|
<script src='{% static "js/jquery_v3_6_4.js" %}'> </script>
|
||||||
|
<script src='{% static "js/ion.rangeSlider.min.js" %}'> </script>
|
||||||
|
<script src='{% static "js/autocomplete.js" %}'> </script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="{% static 'css/ion.rangeSlider.min.css' %}">
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@@ -7,10 +7,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<script src='{% static "js/jquery_v3_6_4.js" %}'> </script>
|
<script src='{% static "js/jquery_v3_6_4.js" %}'> </script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
||||||
|
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{# {% include 'inter/meta.html' %}#}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user