Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -566,6 +566,7 @@
|
|||||||
.menu_buttons.left.open.filters{
|
.menu_buttons.left.open.filters{
|
||||||
max-height: 91vh;
|
max-height: 91vh;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
.block_w_paging.routes {
|
.block_w_paging.routes {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -423,12 +423,15 @@
|
|||||||
.container-messenger{
|
.container-messenger{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin-bottom: 30px;
|
}
|
||||||
|
|
||||||
|
.container-messenger.margin{
|
||||||
|
margin-top: 25px
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-chat{
|
.block-chat{
|
||||||
width: 66%;
|
width: 66%;
|
||||||
height: 88vh;
|
height: calc(100vh - 120px);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
border: 1px solid #E6E6E6;
|
border: 1px solid #E6E6E6;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
@@ -438,7 +441,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.block-chat.support{
|
.block-chat.support{
|
||||||
height: 86vh;
|
height: calc(100vh - 154px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-list-of-users{
|
.block-list-of-users{
|
||||||
@@ -1020,10 +1023,14 @@
|
|||||||
|
|
||||||
.container_inp_w_abr{
|
.container_inp_w_abr{
|
||||||
height: 66%;
|
height: 66%;
|
||||||
width: 98%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-find-route{
|
||||||
|
min-height: 695px;
|
||||||
|
}
|
||||||
|
|
||||||
.cont-el-form-search-carrier > button{
|
.cont-el-form-search-carrier > button{
|
||||||
width: 99%;
|
width: 99%;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@@ -1102,6 +1109,7 @@
|
|||||||
border-right: 1px solid #E6E6E6;
|
border-right: 1px solid #E6E6E6;
|
||||||
border-bottom: 1px solid #E6E6E6;
|
border-bottom: 1px solid #E6E6E6;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
|
cursor: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.abbreviation_airport_in_search.hide{
|
.abbreviation_airport_in_search.hide{
|
||||||
@@ -1145,7 +1153,7 @@
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.block_w_paging.routes{
|
.block_w_paging.routes{
|
||||||
width: 73%;
|
width: 71%;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2365,6 +2373,7 @@
|
|||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.menu_buttons.left.open{
|
.menu_buttons.left.open{
|
||||||
left: 0;
|
left: 0;
|
||||||
transition: 200ms;
|
transition: 200ms;
|
||||||
@@ -2374,16 +2383,28 @@
|
|||||||
width: 33%;
|
width: 33%;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
max-height: 83vh;
|
max-height: calc(100vh - 125px);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.support .menu_buttons.left.open{
|
||||||
|
max-height: calc(100vh - 140px);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.support .menu_buttons.left.open.margin{
|
||||||
|
margin-top: 49px;
|
||||||
|
max-height: calc(100vh - 215px);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.menu_buttons.left.open.filters{
|
.menu_buttons.left.open.filters{
|
||||||
width: 294px;
|
width: 294px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
max-height: 83vh;
|
max-height: 83vh;
|
||||||
left: 0;
|
left: 19px;
|
||||||
padding: 13px;
|
padding: 13px;
|
||||||
/* position: fixed; */
|
/* position: fixed; */
|
||||||
float: left;
|
float: left;
|
||||||
@@ -2393,9 +2414,6 @@
|
|||||||
transition: 0ms;
|
transition: 0ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support .menu_buttons.left.open{
|
|
||||||
margin-top: 49px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.handler_menu.left.close{
|
.handler_menu.left.close{
|
||||||
background: #FF613A;
|
background: #FF613A;
|
||||||
@@ -2485,7 +2503,6 @@
|
|||||||
height: calc(100vh - 120px);
|
height: calc(100vh - 120px);
|
||||||
max-height: 667px;
|
max-height: 667px;
|
||||||
background: #F8F8F8;
|
background: #F8F8F8;
|
||||||
direction: rtl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_profile.background{
|
.menu_profile.background{
|
||||||
|
|||||||
@@ -1147,6 +1147,17 @@ h2.title_new_route{
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
.menu_profile>div:first-of-type {
|
||||||
|
border-radius: 10px;
|
||||||
|
background:none;
|
||||||
|
/* Shadow 1 */
|
||||||
|
box-shadow: none;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,4 +64,10 @@ function changeWidthEL (el){
|
|||||||
el.classList.add('w_100')
|
el.classList.add('w_100')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function focusOnInput (el) {
|
||||||
|
let parent = el.offsetParent
|
||||||
|
let input = parent.querySelector('.find_route')
|
||||||
|
input.focus()
|
||||||
}
|
}
|
||||||
@@ -53,8 +53,12 @@ function select_tab_profile (el,url,owner_type=null) {
|
|||||||
}
|
}
|
||||||
document.querySelector("#ru_lang").href = confirm_url_f_lang_ru
|
document.querySelector("#ru_lang").href = confirm_url_f_lang_ru
|
||||||
document.querySelector("#en_lang").href = confirm_url_f_lang_en
|
document.querySelector("#en_lang").href = confirm_url_f_lang_en
|
||||||
|
let header = document.querySelector("header")
|
||||||
|
header.scrollIntoView({
|
||||||
|
behavior: "smooth",
|
||||||
|
block: "end",
|
||||||
|
inline: "nearest"
|
||||||
|
})
|
||||||
middleWareJS()
|
middleWareJS()
|
||||||
let user_type = getInfoAboutUser()
|
let user_type = getInfoAboutUser()
|
||||||
if (user_type === 'mobile') {
|
if (user_type === 'mobile') {
|
||||||
@@ -430,7 +434,7 @@ function createTicket (el) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function selectedUserMessenger (ticket_id=null,user_id=null){
|
function selectedUserMessenger (ticket_id=null,user_id=null,el){
|
||||||
let loader = document.querySelector(".loader_chat_f_sw_chats")
|
let loader = document.querySelector(".loader_chat_f_sw_chats")
|
||||||
let block_chat = document.querySelector(".block-chat")
|
let block_chat = document.querySelector(".block-chat")
|
||||||
if (loader){
|
if (loader){
|
||||||
@@ -471,6 +475,12 @@ function selectedUserMessenger (ticket_id=null,user_id=null){
|
|||||||
document.querySelector(".info_profile").innerHTML = data.html;
|
document.querySelector(".info_profile").innerHTML = data.html;
|
||||||
document.querySelector(".enter-message-inp").focus()
|
document.querySelector(".enter-message-inp").focus()
|
||||||
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'});
|
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'});
|
||||||
|
let menu = document.querySelector(".menu_buttons.curtain.left")
|
||||||
|
let container_user_messenger = document.querySelector(".container-messenger")
|
||||||
|
if (!container_user_messenger.classList.contains('margin') || !menu.classList.contains('margin')){
|
||||||
|
container_user_messenger.classList.add('margin')
|
||||||
|
menu.classList.add('margin')
|
||||||
|
}
|
||||||
|
|
||||||
let user_type = getInfoAboutUser()
|
let user_type = getInfoAboutUser()
|
||||||
let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain'))
|
let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain'))
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{# </div>#}
|
{# </div>#}
|
||||||
<img class="loader_chat_f_sw_chats support" src="{% static "/img/svg/loader.svg" %}" alt="loader">
|
<img class="loader_chat_f_sw_chats support" src="{% static "/img/svg/loader.svg" %}" alt="loader">
|
||||||
{% if user.is_staff %}
|
{% if user.is_staff %}
|
||||||
<div class="menu_buttons curtain left open" data-name="тик">
|
<div class="menu_buttons curtain left open {% if name.ticket %}margin{% endif %}" data-name="тик">
|
||||||
<div class="container_block_list_of_users">
|
<div class="container_block_list_of_users">
|
||||||
{% include 'blocks/profile/b_list_of_tickets_support_chat.html' %}
|
{% include 'blocks/profile/b_list_of_tickets_support_chat.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
id="id_from_address_point_txt"
|
id="id_from_address_point_txt"
|
||||||
{% if route_form.initial.from_address_point_txt %}value="{{ route_form.initial.from_address_point_txt }}"{% endif %}
|
{% if route_form.initial.from_address_point_txt %}value="{{ route_form.initial.from_address_point_txt }}"{% endif %}
|
||||||
/>
|
/>
|
||||||
<div id="abbreviation_airport_in_search" class="abbreviation_airport_in_search"></div>
|
<div id="abbreviation_airport_in_search" onclick="focusOnInput(this)" class="abbreviation_airport_in_search"></div>
|
||||||
<div class="input_list find_route" name="from_address_point_txt_list">
|
<div class="input_list find_route" name="from_address_point_txt_list">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
id="id_to_address_point_txt"
|
id="id_to_address_point_txt"
|
||||||
class="to_address_point_txt find_route"
|
class="to_address_point_txt find_route"
|
||||||
{% if route_form.initial.to_address_point_txt %}value="{{ route_form.initial.to_address_point_txt}}"{% endif %}/>
|
{% if route_form.initial.to_address_point_txt %}value="{{ route_form.initial.to_address_point_txt}}"{% endif %}/>
|
||||||
<div class="abbreviation_airport_in_search"></div>
|
<div class="abbreviation_airport_in_search" onclick="focusOnInput(this)"></div>
|
||||||
<div class="input_list find_route" name="to_address_point_txt_list">
|
<div class="input_list find_route" name="to_address_point_txt_list">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,54 +22,45 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="previous_next_news">
|
<div class="previous_next_news">
|
||||||
{% for art in arts_top %}
|
{% for item in arts_top %}
|
||||||
|
|
||||||
<a class="cont_one_news" href="{% url "article_one" art.url %}">
|
<div class="news_item">
|
||||||
<div class="cont_img_one_news">
|
<a href="{% url "article_one" item.url %}">
|
||||||
<img class="img_one_news" src="{{ MEDIA_URL }}{{ art.picture }}">
|
<div class="news_img"><img src="{{ MEDIA_URL }}{{ item.picture }}" /></div>
|
||||||
|
<div class="news_header">{{ item.name }}</div>
|
||||||
|
<div class="news_description">
|
||||||
|
{{ item.description|truncatechars:100 }}
|
||||||
|
<div class="news_gradient"></div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cont_content_one_news">
|
|
||||||
<div class="container_name_one_news">
|
|
||||||
{{ art.name|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
<div class="container_descript_one_news">
|
|
||||||
{{ art.description|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{#<div>{{ art.text|safe }}</div>#}
|
{#<div>{{ art.text|safe }}</div>#}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<a class="cont_one_news" href="{% url "article_one" art.url %}">
|
<div class="news_item">
|
||||||
<div class="cont_img_one_news">
|
|
||||||
<img class="img_one_news" src="{{ MEDIA_URL }}{{ art.picture }}">
|
<div class="news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
|
||||||
</div>
|
<div class="news_header">{{ art.name }}</div>
|
||||||
<div class="cont_content_one_news">
|
<div class="news_description">
|
||||||
<div class="container_name_one_news">
|
|
||||||
{{ art.name|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
<div class="container_descript_one_news">
|
|
||||||
{{ art.description|truncatechars:100 }}
|
{{ art.description|truncatechars:100 }}
|
||||||
|
<div class="news_gradient"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
{% for item in arts_down %}
|
{% for item in arts_down %}
|
||||||
|
|
||||||
<a class="cont_one_news" href="{% url "article_one" art.url %}">
|
<div class="news_item">
|
||||||
<div class="cont_img_one_news">
|
<a href="{% url "article_one" item.url %}">
|
||||||
<img class="img_one_news" src="{{ MEDIA_URL }}{{ art.picture }}">
|
<div class="news_img"><img src="{{ MEDIA_URL }}{{ item.picture }}" /></div>
|
||||||
</div>
|
<div class="news_header">{{ item.name }}</div>
|
||||||
<div class="cont_content_one_news">
|
<div class="news_description">
|
||||||
<div class="container_name_one_news">
|
{{ item.description|truncatechars:100 }}
|
||||||
{{ art.name|truncatechars:100 }}
|
<div class="news_gradient"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container_descript_one_news">
|
</a>
|
||||||
{{ art.description|truncatechars:100 }}
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{#<div>{{ art.text|safe }}</div>#}
|
{#<div>{{ art.text|safe }}</div>#}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -15,19 +15,16 @@
|
|||||||
<div class="three_pinned_news">
|
<div class="three_pinned_news">
|
||||||
{% for art in articles %}
|
{% for art in articles %}
|
||||||
{% if forloop.counter0 < 3 %}
|
{% if forloop.counter0 < 3 %}
|
||||||
<a class="cont_one_news" href="{% url "article_one" art.url %}">
|
<div class="news_item">
|
||||||
<div class="cont_img_one_news">
|
<a href="{% url "article_one" art.url %}">
|
||||||
<img class="img_one_news" src="{{ MEDIA_URL }}{{ art.picture }}">
|
<div class="news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
|
||||||
</div>
|
<div class="news_header">{{ art.name }}</div>
|
||||||
<div class="cont_content_one_news">
|
<div class="news_description">
|
||||||
<div class="container_name_one_news">
|
|
||||||
{{ art.name|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
<div class="container_descript_one_news">
|
|
||||||
{{ art.description|truncatechars:100 }}
|
{{ art.description|truncatechars:100 }}
|
||||||
|
<div class="news_gradient"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{#<div>{{ art.text|safe }}</div>#}
|
{#<div>{{ art.text|safe }}</div>#}
|
||||||
@@ -35,12 +32,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="block_w_paging">
|
<div class="block_w_paging">
|
||||||
<div class="news_block">
|
{% with from_el=3 %}
|
||||||
{% with from_el=3 %}
|
{% include 'blocks/articles/b_news_elements_content.html' %}
|
||||||
{% include 'blocks/articles/b_news_elements_content.html' %}
|
{% endwith %}
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{# boris edited #}
|
{# boris edited #}
|
||||||
{% if last_block == False %}
|
{% if last_block == False %}
|
||||||
<div class="text-align-center">
|
<div class="text-align-center">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<div class="tab_user_messanger{% if item.id == ticket.id %} select{% endif %}" onclick="selectedUserMessenger({{ item.id }},null)" data-cur-receiver-item="{{ item.id }}">
|
<div class="tab_user_messanger{% if item.id == ticket.id %} select{% endif %}" onclick="selectedUserMessenger({{ item.id }},null,this)" data-cur-receiver-item="{{ item.id }}">
|
||||||
<div class="left-part-tab-user">
|
<div class="left-part-tab-user">
|
||||||
<img class="user_avatar_messenger" {% if item.user_profile.avatar %}src="{{ item.user_profile.avatar.url }}"{% else %}src="{% static "img/svg/User.svg" %}"{% endif %}>
|
<img class="user_avatar_messenger" {% if item.user_profile.avatar %}src="{{ item.user_profile.avatar.url }}"{% else %}src="{% static "img/svg/User.svg" %}"{% endif %}>
|
||||||
<div class="status_user">
|
<div class="status_user">
|
||||||
|
|||||||
@@ -1,29 +1,16 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% if not from_el or forloop.counter > from_el %}
|
{% if not from_el or forloop.counter > from_el %}
|
||||||
{# <div class="news_item_pagination">#}
|
<div class="news_item_pagination">
|
||||||
{# <div class="pag_news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>#}
|
<div class="pag_news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
|
||||||
{# <div class="pag_news_item_text">#}
|
<div class="pag_news_item_text">
|
||||||
{# <div class="news_header">{{ art.name }}</div>#}
|
<div class="news_header">{{ art.name }}</div>
|
||||||
{# <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 class="clear_both"></div>#}
|
|
||||||
{##}
|
|
||||||
{# </div>#}
|
|
||||||
<a class="cont_one_news" href="{% url "article_one" art.url %}">
|
|
||||||
<div class="cont_img_one_news">
|
|
||||||
<img class="img_one_news" src="{{ MEDIA_URL }}{{ art.picture }}">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cont_content_one_news">
|
|
||||||
<div class="container_name_one_news">
|
|
||||||
{{ art.name|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
<div class="container_descript_one_news">
|
|
||||||
{{ art.description|truncatechars:100 }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
<div class="clear_both"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user