0.0.51
This commit is contained in:
@@ -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*/
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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/',
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<input type="number" name="from_address_point" id="id_from_address_point" hidden />
|
||||
<input
|
||||
oninput="searchTown(this)"
|
||||
onclick="searchTown(this)"
|
||||
{# onclick="showSearchList()"#}
|
||||
onblur="onblurInputField(event, this)"
|
||||
type="text"
|
||||
name="from_address_point_txt"
|
||||
@@ -168,7 +168,7 @@
|
||||
|
||||
{# </div>#}
|
||||
|
||||
<div>
|
||||
<div class="checkbox_cargo_type">
|
||||
{% for item in form.fields.cargo_type.choices %}
|
||||
<input
|
||||
type="checkbox"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
Куда доставит:{{ route.to_place }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="route_contact">
|
||||
<h2>Контакты перевозчика:</h2>
|
||||
|
||||
Reference in New Issue
Block a user