Merge remote-tracking branch 'origin/main'

This commit is contained in:
SBD
2023-12-03 14:39:16 +03:00
7 changed files with 27 additions and 7 deletions

View File

@@ -221,6 +221,7 @@
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
float: left; float: left;
height: 20px;
} }
.message-sprt-inf{ .message-sprt-inf{

View File

@@ -1895,6 +1895,7 @@ button#edit_route {
position: absolute; position: absolute;
height: -webkit-fill-available; height: -webkit-fill-available;
width: -webkit-fill-available; width: -webkit-fill-available;
width: -moz-available;
} }
#error_footer{ #error_footer{

View File

@@ -411,6 +411,19 @@ function onblurInputField(event,el){
// } // }
} }
function clearID(el) {
el.select();
if(el.id === 'id_from_address_point_txt'){
document.getElementById('id_from_address_point').value = ''
} else if(el.id === 'id_to_address_point_txt'){
document.getElementById('id_to_address_point').value = ''
}
}
// function hideErrorMsg(el) { // function hideErrorMsg(el) {
// let hide_element = document.querySelector() // let hide_element = document.querySelector()

View File

@@ -122,7 +122,7 @@
oninput="searchTown(this)" oninput="searchTown(this)"
onclick="showSearchList(this)" onclick="showSearchList(this)"
onblur="onblurInputField(event, this)" onblur="onblurInputField(event, this)"
onFocus="this.select()" onfocus="clearID(this)"
autocomplete="off" autocomplete="off"
type="text" type="text"
minlength="3" minlength="3"
@@ -159,7 +159,7 @@
onclick="showSearchList(this)" onclick="showSearchList(this)"
onblur="onblurInputField(event, this)" onblur="onblurInputField(event, this)"
onFocus="this.select()" onfocus="clearID(this)"
autocomplete="off" autocomplete="off"
type="text" type="text"
name="to_address_point_txt" name="to_address_point_txt"

View File

@@ -23,7 +23,7 @@
oninput="searchTown(this)" oninput="searchTown(this)"
onclick="showSearchList(this)" onclick="showSearchList(this)"
onblur="onblurInputField(event, this)" onblur="onblurInputField(event, this)"
onFocus="this.select()" onfocus="clearID(this)"
autocomplete="off" autocomplete="off"
type="text" type="text"
minlength="3" minlength="3"
@@ -62,7 +62,7 @@
onclick="showSearchList(this)" onclick="showSearchList(this)"
onblur="onblurInputField(event, this)" onblur="onblurInputField(event, this)"
onFocus="this.select()" onfocus="clearID(this)"
autocomplete="off" autocomplete="off"
type="text" type="text"
name="to_address_point_txt" name="to_address_point_txt"

View File

@@ -1,6 +1,9 @@
{% extends "tb_base.html" %} {% extends "tb_base.html" %}
{% load i18n %} {% load i18n %}
{% load static %}
{% block content %} {% block content %}
@@ -24,6 +27,8 @@
<h2 id="title_static">{% translate "Читайте также:" %}</h2> <h2 id="title_static">{% translate "Читайте также:" %}</h2>
<div class="previous_next_news"> <div class="previous_next_news">
{% for item in arts_top %} {% for item in arts_top %}
@@ -39,7 +44,7 @@
</a> </a>
</div> </div>
{#<div>{{ art.text|safe }}</div>#} <div>{{ art.text|safe }}</div>
{% endfor %} {% endfor %}
<div class="news_item_static"> <div class="news_item_static">
@@ -66,7 +71,7 @@
</a> </a>
</div> </div>
{#<div>{{ art.text|safe }}</div>#} <div>{{ art.text|safe }}</div>
{% endfor %} {% endfor %}
</div> </div>

View File

@@ -11,7 +11,7 @@
<div class="news_description"> <div class="news_description">
{{ art.description|truncatechars:400 }} {{ art.description|truncatechars:400 }}
{# <div class="news_gradient"></div>#} {# <div class="news_gradient"></div>#}
</div> </div>
</div> </div>
<div class="clear_both"></div> <div class="clear_both"></div>
</a> </a>