diff --git a/static/css/styles.css b/static/css/styles.css index bf60874..2c8a863 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1055,15 +1055,15 @@ div.departure_arrival>div>input{ .input_list{ display: none; - margin-top: 80px; - width: 30%; + width: 24%; height: 200px; position: absolute; padding-top: 20px; - background-color: #ffcc80; + background-color: #F8F8F8; min-height: 200px; overflow: scroll; overflow-x:hidden; + } .input_list.show{ @@ -1110,24 +1110,35 @@ input#id_extra_phone /* font-weight: 500;*/ /* line-height: 22px;*/ /*}*/ +.checkbox_cargo_type{ + display: flex; + flex-wrap: wrap; +} +input#id_cargo_type{ + width: 50%; +} /*my routes*/ .my_route{ - display: block ruby; background-color: White; border-radius: 10px; margin: 2% 0 0 0; box-shadow: 0px -1px 10px 0px #C6C7CB33; - } .route_info{ border-style: inset; border-width: 1px; border-color: transparent #F8F8F8 transparent transparent; + width: 59%; + float: left; } +.route_contact{ + width: 40%; + float: right; +} /*my routes*/ diff --git a/static/js/autocomlite.js b/static/js/autocomlite.js index fef9aaf..6a7da15 100644 --- a/static/js/autocomlite.js +++ b/static/js/autocomlite.js @@ -38,6 +38,7 @@ function searchTown(el){ + function selectItemAddrPoint(id, name, ctrl_name,){ let input_list = document.getElementsByName(ctrl_name + '_list')[0]; let tap_txt_cont = document.querySelector("#id_" + ctrl_name); @@ -62,6 +63,13 @@ function insertSearchList(data, ctrl_name) { input_list.classList.remove("show"); } +} +function showSearchList() { + let input_list = document.getElementsByClassName('input_list'); + if(input_list.classList.contains('show')){ + input_list.classList.add("show"); + } + } function onblurInputField(event,el){ diff --git a/static/js/sendRoute.js b/static/js/sendRoute.js index df453a4..17b52e1 100644 --- a/static/js/sendRoute.js +++ b/static/js/sendRoute.js @@ -42,11 +42,6 @@ function sendRoute(el){ //cleaning route inputs after selection changes function OnSelectionChange() { - document.getElementById("id_from_address_point_txt").value = ''; - document.getElementById("id_to_address_point_txt").value = ''; - document.getElementById("id_from_address_point").value = ''; - document.getElementById("id_to_address_point").value = ''; - $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, url: '/ru/user_account/new_route_view/', diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 23d236b..8d39127 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -64,7 +64,7 @@ #} -
+
{% for item in form.fields.cargo_type.choices %}
+

Контакты перевозчика: