0.0.51
This commit is contained in:
@@ -1055,15 +1055,15 @@ div.departure_arrival>div>input{
|
|||||||
|
|
||||||
.input_list{
|
.input_list{
|
||||||
display: none;
|
display: none;
|
||||||
margin-top: 80px;
|
width: 24%;
|
||||||
width: 30%;
|
|
||||||
height: 200px;
|
height: 200px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
background-color: #ffcc80;
|
background-color: #F8F8F8;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
overflow-x:hidden;
|
overflow-x:hidden;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input_list.show{
|
.input_list.show{
|
||||||
@@ -1110,24 +1110,35 @@ input#id_extra_phone
|
|||||||
/* font-weight: 500;*/
|
/* font-weight: 500;*/
|
||||||
/* line-height: 22px;*/
|
/* line-height: 22px;*/
|
||||||
/*}*/
|
/*}*/
|
||||||
|
.checkbox_cargo_type{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
input#id_cargo_type{
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*my routes*/
|
/*my routes*/
|
||||||
|
|
||||||
.my_route{
|
.my_route{
|
||||||
display: block ruby;
|
|
||||||
background-color: White;
|
background-color: White;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin: 2% 0 0 0;
|
margin: 2% 0 0 0;
|
||||||
box-shadow: 0px -1px 10px 0px #C6C7CB33;
|
box-shadow: 0px -1px 10px 0px #C6C7CB33;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.route_info{
|
.route_info{
|
||||||
border-style: inset;
|
border-style: inset;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: transparent #F8F8F8 transparent transparent;
|
border-color: transparent #F8F8F8 transparent transparent;
|
||||||
|
width: 59%;
|
||||||
|
float: left;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.route_contact{
|
||||||
|
width: 40%;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
/*my routes*/
|
/*my routes*/
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ function searchTown(el){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function selectItemAddrPoint(id, name, ctrl_name,){
|
function selectItemAddrPoint(id, name, ctrl_name,){
|
||||||
let input_list = document.getElementsByName(ctrl_name + '_list')[0];
|
let input_list = document.getElementsByName(ctrl_name + '_list')[0];
|
||||||
let tap_txt_cont = document.querySelector("#id_" + ctrl_name);
|
let tap_txt_cont = document.querySelector("#id_" + ctrl_name);
|
||||||
@@ -62,6 +63,13 @@ function insertSearchList(data, ctrl_name) {
|
|||||||
input_list.classList.remove("show");
|
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){
|
function onblurInputField(event,el){
|
||||||
|
|||||||
@@ -42,11 +42,6 @@ function sendRoute(el){
|
|||||||
|
|
||||||
//cleaning route inputs after selection changes
|
//cleaning route inputs after selection changes
|
||||||
function OnSelectionChange() {
|
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({
|
$.ajax({
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
url: '/ru/user_account/new_route_view/',
|
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 type="number" name="from_address_point" id="id_from_address_point" hidden />
|
||||||
<input
|
<input
|
||||||
oninput="searchTown(this)"
|
oninput="searchTown(this)"
|
||||||
onclick="searchTown(this)"
|
{# onclick="showSearchList()"#}
|
||||||
onblur="onblurInputField(event, this)"
|
onblur="onblurInputField(event, this)"
|
||||||
type="text"
|
type="text"
|
||||||
name="from_address_point_txt"
|
name="from_address_point_txt"
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
|
|
||||||
{# </div>#}
|
{# </div>#}
|
||||||
|
|
||||||
<div>
|
<div class="checkbox_cargo_type">
|
||||||
{% for item in form.fields.cargo_type.choices %}
|
{% for item in form.fields.cargo_type.choices %}
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
Куда доставит:{{ route.to_place }}
|
Куда доставит:{{ route.to_place }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="route_contact">
|
<div class="route_contact">
|
||||||
<h2>Контакты перевозчика:</h2>
|
<h2>Контакты перевозчика:</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user